{"uid":"cap_ZtdoWWM5zwohzd_oDOXdX","slug":"agentdiet-universal-mcp-gateway-context-window-distiller-dc3a1035","name":"AgentDiet Universal MCP Gateway — 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/universal-mcp-gateway?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_PCDd5f5EWkSv2dTWZdV9k","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 universal MCP/A2A gateway, reducing token usage by up to 85-91% through RAG-style de-bloating","exampleAgentPrompt":"Can you run my current context through the AgentDiet RAG distiller to compress it and strip the bloat — I want to see the compression ratio and get the leaner version back before I send it to the next agent node?","exampleUseCases":[{"title":"Compress RAG output before LLM call","prompt":"Take this RAG retrieval result I just got back and run it through the AgentDiet context distiller — I want to cut the token count down as far as possible before feeding it into the next LLM call. Show me the compression ratio achieved."},{"title":"Trim agent memory before handoff","prompt":"My agent's context window is getting bloated after 20 turns of conversation. Can you send it through the AgentDiet universal gateway to de-bloat and distill it down to just the essential parts before the next A2A handoff?"},{"title":"Reduce inference costs in automated pipeline","prompt":"I'm running an automated pipeline where every step costs tokens — can you compress the intermediate context using the AgentDiet distiller so I'm not wasting money on boilerplate and repeated content in each MCP node call?"}],"resultDescription":"Returns a JSON object with a 'data' field containing the compressed/distilled content, a 'status' field ('ok' on success), and an 'roi_proof' object showing the compression_ratio_pct achieved (e.g. 91.4% token reduction).","failureModes":["Missing required 'input' field returns validation error","Invalid 'type' value (must be 'http') causes rejection","Unsupported HTTP method enum value causes rejection","Payment not settled in USDC on Base causes 402 response","Empty or malformed query param returns degraded compression","Service unavailable returns non-ok status"],"whenToPreferThis":"Choose this endpoint when you need to compress AI agent context windows or LLM prompts at scale via a paid, deterministic MCP/A2A-compatible gateway that settles in USDC on Base. It is specifically suited for agent-to-agent (A2A) or bot-to-agent (B2A) pipelines where token costs matter and where you need verifiable compression ratios (ROI proof). Prefer it over general text summarizers when you need protocol-native integration (MCP, x402, L402) and deterministic, reproducible compression rather than generative summarization.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:55.008Z","isFirstParty":false,"canonicalSlug":"agentdiet-universal-mcp-gateway-context-window-distiller-dc3a1035"}