{"uid":"cap_KV6DRLQQaSOZIzu2b7wjr","slug":"agentdiet-web-search-with-context-distillation-dfeaa5fb","name":"AgentDiet Web Search with Context Distillation","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-search?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_mKEXFEf6n1tYdqcWRfuBO","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":"Performs a web search and returns results compressed/distilled to reduce token usage by up to ~91%","exampleAgentPrompt":"Search the web for 'latest developments in quantum computing 2025' and give me the distilled results — I need it token-efficient so it fits in my context window.","exampleUseCases":[{"title":"Real-time fact lookup for agent","prompt":"Search the web for the current CEO of OpenAI and return me a compressed summary — I want to keep my context usage minimal."},{"title":"Competitive research in tight context","prompt":"Look up recent news about Tesla's latest earnings report online and give me a condensed version — my context window is almost full and I need the key facts only."},{"title":"Agent grounding on current events","prompt":"Search the web for 'EU AI Act enforcement updates 2025' and send back the distilled results so my agent can stay grounded without eating up tokens."}],"resultDescription":"A JSON object with a 'status' field ('ok'), a 'data' field containing the search results, and a 'roi_proof' object showing the compression_ratio_pct (e.g. 91.4%), confirming how much the output was compressed relative to raw web content.","failureModes":["Missing 'query' parameter in queryParams results in empty or error response","Invalid 'type' value (must be 'http') causes schema validation failure","Network or upstream search provider unavailability returns non-ok status","Payment not settled in USDC on Base causes 402 Payment Required response","Malformed input object missing required 'method' field causes request rejection"],"whenToPreferThis":"Choose this endpoint when your AI agent needs to search the web but is operating under tight context window constraints — the built-in ~91% compression ratio makes it ideal for agents that must retrieve current information without consuming large amounts of tokens. Prefer it over raw web search APIs when token efficiency is a priority, or when building A2A/MCP pipelines that pay per call via x402/USDC microtransactions on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:34.225Z","isFirstParty":false,"canonicalSlug":"agentdiet-web-search-with-context-distillation-dfeaa5fb"}