{"uid":"cap_69sORHPx55hzjsyWl-CZN","slug":"agentdiet-rag-context-window-distiller-broker-execute-c1e6763c","name":"AgentDiet RAG Context Window Distiller — Broker Execute","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/broker/execute?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":{"query":{"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.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_d2iS7lVrU4IS88M0lisjI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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, executed via a micropayment-gated broker endpoint settling in USDC on Base.","exampleAgentPrompt":"Use AgentDiet's RAG distiller to compress this context window with a GET query — I want to cut my token usage down and get back a compression ratio proof showing how much was trimmed.","exampleUseCases":[{"title":"LLM cost reduction for long documents","prompt":"I have a huge chunk of retrieved RAG context that I need to compress before sending to the LLM — can you run it through AgentDiet's distiller to cut the tokens and show me the compression ratio I got back?"},{"title":"A2A agent context slimming","prompt":"My AI agent pipeline is hitting context window limits — use AgentDiet to distill and de-bloat the current context so the downstream agent gets a trimmed version under the token budget."},{"title":"Token budget audit with ROI proof","prompt":"Before I scale up my agent fleet, I want to see what compression ratio AgentDiet achieves on a sample query — run a test distillation and give me the roi_proof compression percentage from the response."}],"resultDescription":"Returns a JSON object with a 'data' field containing the distilled output, a 'status' field (e.g. 'ok'), and a 'roi_proof' object including a 'compression_ratio_pct' (e.g. 91.4%) demonstrating how much the context was reduced.","failureModes":["Missing 'input' field or invalid type/method enum causes schema validation failure","Payment not settled in USDC on Base results in 402 Payment Required","Unsupported HTTP method (not GET or POST) returns an error","Empty or malformed query param causes incomplete distillation","Network timeout if upstream RAG node is unavailable"],"whenToPreferThis":"Choose this endpoint when an AI agent or pipeline needs to reduce context window size before calling an expensive LLM, especially in cost-sensitive or token-constrained A2A workflows where a verifiable compression ratio proof is required and micropayment settlement via x402/USDC on Base is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:19.765Z","isFirstParty":false,"canonicalSlug":"agentdiet-rag-context-window-distiller-broker-execute-c1e6763c"}