{"uid":"cap_RZ3vvLytn4svYi_fUhY9t","slug":"agentdiet-rag-diet-tool-broker-a2a-context-window-distiller-4e267e50","name":"AgentDiet RAG Diet Tool Broker — A2A 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/tool-broker?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_WbORlroLRlxr2x73tRhkq","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 agent context windows by up to 91% using a retrieval-augmented distillation pipeline, returning semantically dense, token-efficient results via a paid API settled in USDC on Base.","exampleAgentPrompt":"Compress this retrieved context using AgentDiet's RAG Diet distiller — I want to shrink it down as much as possible before passing it to my LLM, so send a GET request with my query and show me the compression ratio you achieved.","exampleUseCases":[{"title":"Cut LLM inference costs in RAG pipeline","prompt":"I'm running a RAG pipeline and my retrieved chunks are way too verbose — can you run them through AgentDiet's context distiller to shrink the token count before I send them to the LLM? I want to see the compression ratio I'm getting."},{"title":"Fit long context into smaller model window","prompt":"My agent has a 4K context limit but my retrieved documents are much longer — use the AgentDiet RAG Diet tool to compress the context down so it fits, and tell me how much it was reduced."},{"title":"Reduce A2A agent message payload size","prompt":"My agent-to-agent messages are bloated and eating up tokens on every hop — can you distill the current context payload using AgentDiet so we stay within budget across the 25-node studio pipeline?"}],"resultDescription":"Returns a JSON object with a 'data' field containing the distilled/compressed output, a 'status' field indicating success ('ok'), and an 'roi_proof' object showing the achieved compression ratio percentage (e.g. 91.4%). The response proves how much token reduction was accomplished.","failureModes":["Missing required 'input' field or 'type'/'method' sub-fields returns a validation error","Invalid HTTP method enum value (not GET or POST) causes a 400-level error","Payment not settled in USDC on Base triggers a 402 Payment Required response","Empty or malformed query param may return an empty or minimal compression result","Service unavailability at rag-diet.agentdiet.dev returns a 5xx error"],"whenToPreferThis":"Choose this endpoint when you need deterministic, measurable context window compression in an A2A or MCP agent pipeline, especially when token costs are a bottleneck and you want a verifiable compression ratio (ROI proof). Prefer it over generic summarization APIs when you need x402/L402 micropayment-compatible infrastructure settled in USDC on Base, or when integrating into a multi-node agentic workflow that requires reproducible distillation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:53.783Z","isFirstParty":false,"canonicalSlug":"agentdiet-rag-diet-tool-broker-a2a-context-window-distiller-4e267e50"}