{"uid":"cap_E__DLxHpALMbM-QMxu82v","slug":"agentdiet-a2a-context-window-distiller-d6c8d256","name":"AgentDiet 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/a2a-router?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_HBmr8AgQIY1OQdmQ_WTD2","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 via an A2A router, reducing token usage by up to 85-91% using RAG-based de-bloating.","exampleAgentPrompt":"Can you run my query through AgentDiet's A2A router to compress the context window and tell me how much token reduction I get back?","exampleUseCases":[{"title":"Cut LLM costs before large inference","prompt":"I have a big document I need to send to GPT-4 but it's way over the token limit — can you compress it using AgentDiet's context distiller with a GET query so I only send the essential parts?"},{"title":"Agent pipeline token budget enforcement","prompt":"Before my agent sends this retrieved context to the next node, run it through the AgentDiet A2A router to de-bloat it and show me the compression ratio so I know how much we saved."},{"title":"RAG output slimming before response","prompt":"My RAG retrieval returned a huge chunk of text — use AgentDiet to distill it down to just what's relevant to my search query before I pass it to the LLM."}],"resultDescription":"Returns a JSON object with a 'data' field containing the distilled/compressed output, a 'status' field ('ok' on success), and a 'roi_proof' object showing the compression_ratio_pct achieved (e.g. 91.4%).","failureModes":["Missing required 'input' field returns a validation error","Invalid 'type' value (must be 'http') causes rejection","Unsupported HTTP method enum value causes error","Payment not settled in USDC on Base results in 402 Payment Required","Empty or malformed query param may yield low or no compression","Service unavailability returns non-200 status"],"whenToPreferThis":"Choose this endpoint when you need deterministic, paid-per-call context compression for AI agent pipelines, especially when operating in x402/L402 micropayment environments on Base with USDC. Ideal when token costs are a bottleneck and you need a quantified compression ratio (ROI proof) returned alongside the distilled output. Best suited for A2A, MCP, or B2A agent architectures that require slim context windows before LLM calls.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:23.928Z","isFirstParty":false,"canonicalSlug":"agentdiet-a2a-context-window-distiller-d6c8d256"}