{"uid":"cap_R99p4r6N49CRbDC20oe5r","slug":"agentdiet-web-rag-shield-dag-context-window-distiller-f9a8ac25","name":"AgentDiet Web RAG Shield DAG — 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/web-rag-shield-dag?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_2XjAIsNyDLm9l4tIBKvD1","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":"Fetches and compresses web content via a RAG pipeline, stripping bloat to reduce token usage by up to 91% before injecting into an AI context window","exampleAgentPrompt":"Can you fetch and compress the content from that URL using the AgentDiet RAG shield so it fits efficiently in my context window — I want to cut the token bloat before passing it to my AI pipeline?","exampleUseCases":[{"title":"Compress web research for AI pipeline","prompt":"I need to pull that article and strip all the junk out of it before feeding it to my LLM — use the RAG distiller to compress the content down so I'm not burning tokens on boilerplate and navigation text."},{"title":"Budget-aware agent web retrieval","prompt":"My agent keeps hitting context limits when it reads full web pages — can you use the AgentDiet RAG shield to fetch and compress those search results before they go into the context window?"},{"title":"Token cost reduction for document Q&A","prompt":"Before I run Q&A over those web sources, distill them through the RAG compressor first — I want to see the compression ratio proof so I know how many tokens I'm saving."}],"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 including a 'compression_ratio_pct' value (e.g. 91.4%) indicating how much the content was reduced.","failureModes":["Missing or malformed 'query' parameter results in empty or error response","Unreachable or blocked target URL returns no content","Payment not settled in USDC on Base causes 402 rejection","Invalid 'type' or 'method' enum values in input object cause schema validation failure","Extremely short or already-minimal content may yield low compression ratios"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to retrieve web content for RAG but must minimize token usage and LLM inference costs. It is particularly valuable in agentic pipelines where context windows are constrained, many URLs must be processed cheaply, or where you need verifiable compression metrics. Prefer it over raw web scraping when you want pre-distilled, agent-ready content rather than raw HTML.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:42:22.507Z","isFirstParty":false,"canonicalSlug":"agentdiet-web-rag-shield-dag-context-window-distiller-f9a8ac25"}