{"uid":"cap_kbzG29tW4DG_32ZWlW0MP","slug":"agentdiet-rag-context-window-distiller-41092950","name":"AgentDiet RAG Context Window Distiller","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://rag-diet.agentdiet.dev settling in USDC on Base.","url":"https://rag-diet.agentdiet.dev/v1?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_dsOPv8ncRG7eJiA9ZR4g4","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% using RAG-based de-bloating, reducing token usage while preserving semantic content","exampleAgentPrompt":"Can you run this URL through AgentDiet's context distiller to compress it down to the essential content before I feed it into my LLM pipeline? Use GET mode on https://example.com/long-article.","exampleUseCases":[{"title":"Token cost reduction for RAG pipelines","prompt":"Take this URL https://en.wikipedia.org/wiki/Transformer_(machine_learning_model) and compress it using AgentDiet's RAG distiller so I can feed only the essential content into my agent without blowing my token budget."},{"title":"Web content de-bloating before LLM call","prompt":"I'm about to send a long webpage to my AI — can you use AgentDiet to strip out the bloat from https://www.example.com/news/article-2024 and give me just the distilled semantic content with the compression ratio?"},{"title":"A2A context window slimming in multi-agent workflow","prompt":"Before passing this context from one agent to another, run https://docs.myapp.com/api-reference through AgentDiet's distiller to cut down the token count — I need the compression proof so I can log the ROI."}],"resultDescription":"Returns a JSON object with a `data` field containing the distilled/compressed content, a `status` field ('ok' on success), and a `roi_proof` object showing the compression_ratio_pct (e.g. 91.4%). This allows the caller to verify how much the context was reduced.","failureModes":["Invalid or unreachable URL returns an error status","Missing required `input` object causes schema validation failure","Unsupported HTTP method (not GET or POST) triggers an enum validation error","Payment not settled in USDC on Base results in 402 response blocking execution","Malformed query params cause processing failure with no compression output"],"whenToPreferThis":"Choose this endpoint when you need to reduce token consumption before feeding web content or documents into an LLM or multi-agent pipeline, especially when working with large HTML pages, documentation, or any URL-based context that needs to be slimmed down. It is particularly suited for A2A/MCP agent workflows where context window size is a bottleneck and cost-per-token matters. Prefer it over generic summarization APIs when you need a deterministic compression ratio proof and micro-payment-native ($0.001 USDC) pricing via x402/L402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:49.773Z","isFirstParty":false,"canonicalSlug":"agentdiet-rag-context-window-distiller-41092950"}