{"uid":"cap_1E62qu3KJ9zq3i4M3vSDC","slug":"agentdiet-rag-diet-mesh-dispatch-context-window-distiller-9384a9e7","name":"AgentDiet RAG-Diet Mesh Dispatch — 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/mesh/dispatch?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_GtdPJFTFe72LrXc_zFnKG","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 context windows via a query-based mesh dispatch, reducing token usage by up to 85-91% while preserving semantic fidelity.","exampleAgentPrompt":"Can you run this query through the AgentDiet context distiller to compress the retrieved context and show me how much token reduction I get? The query is: 'summarize the quarterly earnings report for Q3 2024'.","exampleUseCases":[{"title":"Token cost reduction for RAG pipelines","prompt":"I'm spending too much on LLM inference because my RAG results are bloated — can you send this query through the AgentDiet distiller and compress the retrieved context before I pass it to the model? Query: 'what are the main risk factors in this contract?'"},{"title":"Context window compression for multi-agent workflow","prompt":"My agent-to-agent pipeline keeps hitting context limits. Can you use the AgentDiet mesh dispatch to distill and compress the context for this step? The query is: 'extract action items from today's meeting notes'."},{"title":"ROI proof on context compression","prompt":"I want to see how much I can actually save on tokens — can you dispatch a query through AgentDiet's context distiller and return the compression ratio proof? The query is: 'find all compliance requirements in this policy document'."}],"resultDescription":"Returns a JSON object with a 'status' field ('ok'), a 'data' object containing the distilled/compressed output, and an 'roi_proof' object including a 'compression_ratio_pct' value (e.g. 91.4%) showing how much the context was reduced.","failureModes":["Missing required 'input' object or 'type'/'method' fields returns a validation error","Unsupported HTTP method enum value (not GET or POST) causes rejection","Payment not settled in USDC on Base results in 402 Payment Required","Empty or malformed query string may return empty or minimal distilled output","Network or node mesh failure may return non-ok status"],"whenToPreferThis":"Choose this endpoint when your AI agent or pipeline needs to reduce token usage before passing retrieved or aggregated context to an LLM, particularly in RAG, A2A, or MCP workflows where context windows are tight or inference costs are high. It is especially useful when you need verifiable compression metrics (roi_proof) to demonstrate token savings. Prefer it over manual truncation or summarization when deterministic, structured compression with a proof of reduction is required and you are operating in a USDC-on-Base micropayment-capable environment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:24.190Z","isFirstParty":false,"canonicalSlug":"agentdiet-rag-diet-mesh-dispatch-context-window-distiller-9384a9e7"}