{"uid":"cap_ye_67vX3D-Fow7UZgUl11","slug":"agentdiet-swarm-router-a2a-context-window-distiller-4177c0d1","name":"AgentDiet Swarm Router — 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/swarm-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_R6gnI_lMutlDu2PBq30B1","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":"Routes and distills AI agent context windows, compressing token usage by up to 91% via a multi-node swarm router","exampleAgentPrompt":"Can you run my current context window through AgentDiet's swarm router to compress and distill it — I want to see the compression ratio and get back the de-bloated version so I can save tokens before my next LLM call?","exampleUseCases":[{"title":"Compress bloated agent memory","prompt":"My agent's context window is getting huge and burning tokens — can you send the current context through AgentDiet to distill it down and tell me how much compression we get?"},{"title":"Token budget enforcement before LLM call","prompt":"Before I fire off this long prompt to GPT-4, run it through the swarm router to strip out the fluff and give me the compressed version along with the compression ratio proof."},{"title":"A2A pipeline cost optimization","prompt":"I'm building a multi-agent pipeline and token costs are getting out of hand — route this context blob through AgentDiet's distiller and return the lean version with the ROI compression percentage."}],"resultDescription":"Returns a JSON object with a 'data' field containing the distilled/compressed content, a 'status' field (e.g. 'ok'), and a 'roi_proof' object that includes a 'compression_ratio_pct' value showing the percentage of tokens saved (e.g. 91.4%).","failureModes":["Missing or malformed 'input' object returns validation error","Invalid HTTP method enum value (must be GET or POST) causes rejection","Payment not settled in USDC on Base results in 402 Payment Required","Query parameter absent when content distillation is expected may yield empty or trivial output","Network latency to swarm nodes may occasionally cause timeout responses"],"whenToPreferThis":"Choose this endpoint when your AI agent pipeline suffers from context window bloat and you need deterministic, pay-per-use token compression with a verifiable compression ratio proof. Ideal for A2A and MCP workflows where reducing tokens before downstream LLM calls directly lowers inference costs. Best suited for scenarios requiring micropayment-settled (x402/USDC on Base) per-call compression rather than a subscription-based or hosted compression service.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:58.017Z","isFirstParty":false,"canonicalSlug":"agentdiet-swarm-router-a2a-context-window-distiller-4177c0d1"}