{"uid":"cap_VfcPrvxEteytx3SNltdyJ","slug":"agentdiet-rag-diet-context-window-distiller-b6249aba","name":"AgentDiet RAG Diet — Context Window Distiller","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/rag-diet?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_g2nJxTPL8IEGkiLuO_IDm","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 a URL's content into a token-efficient summary, reducing context window bloat by up to 91% for AI agents","exampleAgentPrompt":"Can you run a RAG diet on https://example.com/long-article and compress it down to the essential content — I want to see the compression ratio it achieves so I know how much token overhead I'm saving?","exampleUseCases":[{"title":"RAG pipeline token cost reduction","prompt":"Before I add this documentation page at https://docs.myframework.io/reference/api to my RAG index, can you distill it down using AgentDiet so I only store the essential content and cut my embedding token costs?"},{"title":"Fitting web content into a tight prompt","prompt":"I need to summarize what's on https://news.ycombinator.com/item?id=12345 but my context window is almost full — can you run it through the context distiller and give me the compressed version along with how much it shrank?"},{"title":"A2A agent memory compression","prompt":"My agent just fetched a really long webpage at https://company.com/whitepaper.pdf and I need it trimmed down before passing it to the next node in my pipeline — use the RAG diet on it in GET mode and show me what's left after compression."}],"resultDescription":"Returns a JSON object with a `data` field containing the distilled/compressed content, a `status` field confirming success, and a `roi_proof` object showing the `compression_ratio_pct` (e.g. 91.4%) achieved — giving the agent proof of how much token overhead was eliminated.","failureModes":["Invalid or unreachable URL returns an error status","Missing required `input` object causes schema validation failure","Unsupported HTTP method (not GET or POST) causes rejection","Payment not settled in USDC on Base results in 402 response","Rate limits or node unavailability returns a non-ok status"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to ingest web content into a context window or RAG pipeline and token budget is a constraint — particularly when processing verbose documentation, news articles, or reference pages that contain significant boilerplate. It is purpose-built for A2A and MCP pipelines settling via x402/USDC on Base, making it ideal for autonomous agent workflows that need deterministic, metered compression at $0.001 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:42:20.747Z","isFirstParty":false,"canonicalSlug":"agentdiet-rag-diet-context-window-distiller-b6249aba"}