{"uid":"cap_KiXXyI1M7VtJLZ3cycA71","slug":"agentdiet-alpha-stream-context-window-distiller-0eb85144","name":"AgentDiet Alpha Stream — 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/alpha-stream?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":{"target":{"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_NYtbLCRyoi4RIKeOwZa7_","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 streaming, reducing token usage by up to 85-91% for A2A and MCP pipelines","exampleAgentPrompt":"Use AgentDiet's alpha-stream to compress the content at this URL via GET so I can fit it in my context window — I need the distilled output and the compression ratio proof.","exampleUseCases":[{"title":"RAG pipeline token cost reduction","prompt":"My RAG pipeline is pulling in way too many tokens from retrieved documents before sending them to GPT-4. Can you run those documents through AgentDiet's alpha-stream to compress them down and show me the compression ratio we achieved?"},{"title":"A2A agent context slimming","prompt":"My downstream agent keeps hitting context limits when I pass it the full webpage content. Can you fetch that page, run it through AgentDiet alpha-stream with a GET, and hand the distilled version to the next agent instead?"},{"title":"MCP payload de-bloating before LLM call","prompt":"Before I send this MCP tool result to Claude, compress it using AgentDiet's context distiller so we're not burning through tokens on redundant text — give me the slim output and the ROI proof."}],"resultDescription":"Returns a JSON object with a 'data' field containing the distilled/compressed content, a 'status' field indicating success, and a 'roi_proof' object showing the compression_ratio_pct (e.g. 91.4%) achieved during distillation.","failureModes":["Missing required 'input' field returns validation error","Invalid or unreachable 'target' URL results in fetch failure","Payment not settled in USDC on Base causes 402 Payment Required response","Unsupported HTTP method (not GET or POST) causes rejection","Empty or already-minimal content may yield low compression ratio"],"whenToPreferThis":"Choose this endpoint when an AI agent or pipeline needs to reduce token count before sending content to an LLM, particularly in A2A, MCP, or RAG workflows where context window limits are a bottleneck. It is especially useful when you need a verifiable compression ratio proof alongside the distilled output, and when paying per-call via x402/USDC micropayments is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:41.772Z","isFirstParty":false,"canonicalSlug":"agentdiet-alpha-stream-context-window-distiller-0eb85144"}