{"uid":"cap_smFI4Ji-e1CtfZVlJHNLg","slug":"agentdiet-x402-broker-context-window-distiller-c5828635","name":"AgentDiet x402 Broker — 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/x402-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_Wt8UDKt8lPIiGGA7ayMvD","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 x402-gated broker endpoint, reducing token usage by up to 91% for A2A/MCP workflows, settled in USDC on Base.","exampleAgentPrompt":"Can you compress this context payload to reduce my token usage — use the AgentDiet distiller with a GET query so I can see the compression ratio proof before feeding it to my main model?","exampleUseCases":[{"title":"Slash token costs before expensive model call","prompt":"Take this 10,000-token context blob from my RAG pipeline and compress it through AgentDiet before I send it to GPT-4 — I want to see how much I can shrink it and what the compression ratio ends up being."},{"title":"A2A workflow context pruning","prompt":"My agent-to-agent pipeline is hitting context window limits — can you run the current shared context through the AgentDiet x402 broker to de-bloat it so both agents can keep working without truncation?"},{"title":"LLM cost monitoring via compression proof","prompt":"I want to verify how much token savings I'm actually getting from context distillation — can you query AgentDiet with my latest context and return the roi_proof showing the compression percentage?"}],"resultDescription":"Returns a JSON object with a `data` field containing the distilled/compressed context, a `status` field confirming success, and an `roi_proof` object that includes a `compression_ratio_pct` value (e.g. 91.4%) quantifying how much the context was reduced.","failureModes":["Missing or malformed `input` object — returns validation error","Payment not settled in USDC on Base — x402 payment required before response","Invalid `type` field (must be 'http') — schema const violation","Unsupported HTTP method in `method` field — only GET and POST accepted","Empty or missing `query` in queryParams — may return empty or null data","Service node unavailable — deterministic execution node may be offline"],"whenToPreferThis":"Choose this endpoint when you need to reduce context window size in an A2A, MCP, or RAG pipeline and want a verifiable compression ratio proof. It is particularly well-suited for agents running on x402 micropayment rails on Base/USDC, needing deterministic, cheap-per-call ($0.01) context distillation without a subscription. Prefer this over generic summarization APIs when you need structured ROI proof of compression and interoperability with B2A/A2A/MCP protocols.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:59.949Z","isFirstParty":false,"canonicalSlug":"agentdiet-x402-broker-context-window-distiller-c5828635"}