{"uid":"cap_6qKIQJ_Ge-OWz6dJ7mUZ9","slug":"agentdiet-rag-chunk-context-distiller-467e4f5f","name":"AgentDiet RAG Chunk Context 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/rag-chunk?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":{"url":{"type":"string"},"mode":{"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.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6wXz94VN6sIZmNJXUhk5-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compresses and distills RAG/context window content via HTTP to reduce token usage by up to 91% before feeding it to an LLM","exampleAgentPrompt":"Can you fetch and compress the content at https://example.com/long-article using GET mode so it fits in my context window without blowing up my token budget?","exampleUseCases":[{"title":"Shrink RAG docs before LLM call","prompt":"Take this retrieved document URL https://docs.example.com/reference and compress it down so I can fit it in my GPT-4 context window — I need the de-bloated version, not the full thing."},{"title":"Token cost reduction in agent pipeline","prompt":"My agent keeps hitting token limits pulling in web pages. Can you run https://news.example.com/long-story through the RAG chunk distiller using GET so I only send the essential content to the model?"},{"title":"Context window diet for multi-step reasoning","prompt":"Before I pass this research page at https://arxiv.org/abs/2401.00001 to my reasoning agent, compress it as much as possible so I can see the compression ratio and fit more documents in a single pass."}],"resultDescription":"Returns a JSON object with a 'data' field containing the distilled/compressed content, a 'status' field ('ok' on success), and an 'roi_proof' object showing the compression_ratio_pct achieved (e.g. 91.4% compression). Payment is settled in USDC on Base via x402/L402.","failureModes":["Missing or invalid 'url' query parameter — returns error status","URL is unreachable or returns non-200 — distillation cannot proceed","Unsupported mode value — may return error or fall back to default behavior","Payment not settled via x402/L402 — returns 402 Payment Required before processing","Malformed input schema — required 'type' or 'method' fields absent causes rejection"],"whenToPreferThis":"Choose this endpoint when your agent pipeline needs to reduce token consumption from fetched web pages or RAG-retrieved documents before passing content to an LLM. It is purpose-built for A2A and MCP pipelines where context window size and token cost are bottlenecks, and it provides a verifiable compression ratio (roi_proof) so you can measure savings. Prefer it over generic summarization when you need deterministic, reproducible chunk extraction with micropayment-compatible access (x402/USDC on Base).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:00.842Z","isFirstParty":false,"canonicalSlug":"agentdiet-rag-chunk-context-distiller-467e4f5f"}