{"uid":"cap_gNgtK1BVtmtsOCAaeaSG5","slug":"agentdiet-a2a-context-window-distiller-rag-diet-mesh-node-1e342faa","name":"AgentDiet A2A Context Window Distiller — RAG Diet Mesh Node","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-mesh?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_5Y6B6M-ohy3eeUtNeqZwi","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 to reduce token usage by up to 85–91% via a paid A2A mesh node","exampleAgentPrompt":"Run my agent context through AgentDiet's RAG Diet distiller to compress it — I want to see how much token reduction I get and get back the de-bloated context ready for my next LLM call.","exampleUseCases":[{"title":"Shrink bloated RAG retrieval context","prompt":"My RAG pipeline is pulling in way too many tokens before each LLM call — can you send this retrieved context through the AgentDiet distiller and give me back the compressed version with the compression ratio?"},{"title":"Cost-optimize multi-agent pipeline","prompt":"We're running a 25-node A2A agent mesh and the context windows are getting huge — compress each agent's context with AgentDiet's mesh node so we cut our inference costs, and show me the ROI proof compression ratio."},{"title":"Pre-process context before long reasoning chain","prompt":"Before my agent starts this long reasoning chain, distill and compress its current context window using AgentDiet to shrink it as much as possible — I want to stay under the token limit without losing the key information."}],"resultDescription":"Returns a JSON object with a 'data' field containing the compressed/distilled context, a 'status' field ('ok' on success), and an 'roi_proof' object showing the compression_ratio_pct (e.g. 91.4%) achieved during distillation.","failureModes":["Missing required 'input' field returns validation error","Invalid HTTP method enum value (not GET or POST) causes schema rejection","Unpaid or failed x402 USDC payment on Base results in 402 Payment Required response","Empty or malformed query string may produce no meaningful compression","Service node unavailability returns non-200 status"],"whenToPreferThis":"Choose this endpoint when an AI agent or pipeline needs to reduce context window token counts before expensive LLM inference calls, especially in multi-agent or RAG workflows where context bloat drives up cost. Prefer it over generic summarization when you need deterministic compression with a measurable ROI proof ratio and micropayment-native (x402/USDC) billing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:34.223Z","isFirstParty":false,"canonicalSlug":"agentdiet-a2a-context-window-distiller-rag-diet-mesh-node-1e342faa"}