{"uid":"cap_tnZ2NXhOXG-8IeXo08sdQ","slug":"agentdiet-context-trimmer-a5545a5c","name":"AgentDiet Context Trimmer","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://status.agentdiet.dev settling in USDC on Base.","url":"https://status.agentdiet.dev/v1/context-trimmer?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","POST"],"type":"string"},"queryParams":{"type":"object","properties":{"url":{"type":"string"},"mode":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{},"status":"ok","roi_proof":{"compression_ratio_pct":91.4}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_a3MfemTIgffmQZeudoH6h","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compresses and distills AI context windows by up to 91% to reduce token usage in agent pipelines","exampleAgentPrompt":"Can you run this URL through AgentDiet's context trimmer to compress and distill it before passing it to the next agent step? Use GET mode and trim it as aggressively as possible.","exampleUseCases":[{"title":"Cutting LLM inference costs in pipeline","prompt":"My agent pipeline keeps hitting token limits and costing a fortune — can you compress the context from this URL using AgentDiet before it goes to the next LLM call?"},{"title":"Fitting long docs into context window","prompt":"I have a really long document at this URL that won't fit in my model's context window — can you run it through the context trimmer to distill it down to the essentials?"},{"title":"Optimizing MCP node token budget","prompt":"Before passing context to the next MCP node, trim it down using AgentDiet's context distiller — I need to stay under my token budget for this workflow step."}],"resultDescription":"Returns a JSON object with status 'ok', the compressed/distilled data in the 'data' field, and an 'roi_proof' object containing the compression_ratio_pct (e.g. 91.4%) achieved by the trimming process.","failureModes":["Missing or invalid URL query parameter returns error","Unreachable or malformed target URL results in fetch failure","Payment not settled in USDC on Base causes 402 rejection","Invalid mode parameter returns validation error","Context already minimal may return low compression ratio"],"whenToPreferThis":"Choose this endpoint when an AI agent pipeline is approaching token limits, inference costs are high due to bloated context windows, or you need to pass context through a constrained MCP/A2A node. It is especially useful for deterministic, pay-per-call pipelines using x402/L402 micropayments settled in USDC on Base, where cost predictability matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:40:48.203Z","isFirstParty":false,"canonicalSlug":"agentdiet-context-trimmer-a5545a5c"}