{"uid":"cap_WvDPHyX4e14hrXjQQo3Xz","slug":"agentdiet-rag-context-window-distiller-2ccdff0f","name":"AgentDiet RAG 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/execute?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_wH8ku8CP8kqpeHdLcAEPz","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 by up to 85-91% token reduction via a RAG-based de-bloating execution node, paid per-call in USDC on Base.","exampleAgentPrompt":"Compress this context window for me using AgentDiet's RAG distiller — run a GET query with my input text and tell me how much token reduction I get back.","exampleUseCases":[{"title":"Shrinking RAG retrieval for cheaper LLM calls","prompt":"I've got a massive RAG retrieval result that's blowing my token budget — can you run it through AgentDiet's context distiller and show me the compression ratio I get back?"},{"title":"Agent pipeline context optimization","prompt":"Before I send this long context to my agent's LLM step, compress it with AgentDiet to cut down the token count as much as possible and return the distilled version."},{"title":"Fitting context within model limits","prompt":"This document is too large for my model's context window — use AgentDiet's RAG de-bloater to shrink it down and tell me the final compression percentage achieved."}],"resultDescription":"A JSON response containing a 'data' object with the distilled context output, a 'status' field ('ok' on success), and an 'roi_proof' object showing the compression_ratio_pct achieved (e.g. 91.4%).","failureModes":["Missing or malformed 'input' object returns a validation error","Invalid 'type' value (must be 'http') causes rejection","Payment failure via x402/USDC on Base results in 402 response and no processing","Empty or null query param produces empty distillation result","Network timeout if the compression node is temporarily unavailable"],"whenToPreferThis":"Choose this endpoint when an AI agent or pipeline needs to reduce token count before calling an expensive LLM, when RAG retrieval results are too large for a model's context window, or when you want deterministic per-call compression billed at $0.01 USDC on Base via x402. Prefer it over generic summarization APIs when you need a measurable compression ratio proof and A2A/MCP-compatible execution.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:09.107Z","isFirstParty":false,"canonicalSlug":"agentdiet-rag-context-window-distiller-41092950"}