{"uid":"cap_zauC2GSsGrLuZNpkot1Vt","slug":"agentdiet-b2a-router-context-window-distiller-d3c39fd7","name":"AgentDiet B2A Router — Context Window Distiller","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://status.agentdiet.dev settling in USDC on Base.","url":"https://status.agentdiet.dev/v1/b2a-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_0Vi51OPRHBa3Ixd5kb95H","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 agent-to-agent (A2A) and bot-to-agent (B2A) HTTP requests through a context compression and distillation node that reduces token usage by up to 85-91%","exampleAgentPrompt":"Run my query through the AgentDiet B2A router to compress and distill the context window — I want to see the compression ratio proof and trimmed output so I can cut my token usage before sending it to the LLM.","exampleUseCases":[{"title":"Slash LLM costs in agentic pipeline","prompt":"My agent keeps hitting token limits and the API bills are huge — can you route this context through AgentDiet and compress it down before it goes to the model? I want to see how much it shrinks."},{"title":"Multi-agent context hand-off optimization","prompt":"Before my orchestrator agent passes its full context window to the sub-agent, run it through the AgentDiet B2A router to strip the bloat — I need the distilled output and the compression ratio so I can log the savings."},{"title":"Benchmark token reduction for a prompt","prompt":"I have a big system prompt I want to slim down — send it as a GET query through AgentDiet's distiller and tell me what compression percentage I get back in the roi_proof field."}],"resultDescription":"Returns a JSON object with a 'data' field containing the distilled/compressed output, a 'status' field ('ok' on success), and an 'roi_proof' object including a 'compression_ratio_pct' value (e.g. 91.4%) indicating how much the context was reduced.","failureModes":["Missing required 'input' object returns validation error","Invalid method value (not GET or POST) causes schema rejection","Upstream node unavailability may return non-200 status","Payment not settled in USDC on Base may block request via x402 paywall","Empty or malformed query param may result in empty or minimal compression output"],"whenToPreferThis":"Choose this endpoint when your AI agent pipeline needs to reduce context window size before calling an expensive LLM, when you want a deterministic compression ratio proof for auditing, or when you are building B2A/A2A workflows that require lightweight context passing between nodes. Prefer this over manual prompt trimming when you need automated, measurable token reduction with ROI reporting at $0.01 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:50.631Z","isFirstParty":false,"canonicalSlug":"agentdiet-b2a-router-context-window-distiller-d3c39fd7"}