{"uid":"cap_zvMM1YfHyZSf2hojfrELA","slug":"agentdiet-rag-workflow-distiller-bc43728f","name":"AgentDiet RAG Workflow 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/workflows?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_GJfqhkSYBXSIOVDKAJQPy","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":"Lists and executes context-compression workflows that reduce AI agent context window token usage by up to 85-91% via deterministic RAG-based distillation","exampleAgentPrompt":"Can you list the available context distillation workflows on AgentDiet and show me what compression ratios they achieve? I want to reduce my agent's context window token usage as much as possible.","exampleUseCases":[{"title":"Agent context token cost reduction","prompt":"My AI agent is burning through tokens because the RAG context is huge — can you use AgentDiet to list the available distillation workflows and find one that'll compress that context by at least 85%?"},{"title":"Discover available compression pipelines","prompt":"What compression workflows does AgentDiet have available right now? I want to pick the best one for squeezing down a large document corpus before feeding it to my LLM."},{"title":"Validate compression ROI before pipeline integration","prompt":"Before I integrate AgentDiet into my agent pipeline, can you query the workflows endpoint and show me the compression ratio proof it returns — specifically the roi_proof field — so I know what token savings I can expect?"}],"resultDescription":"Returns a JSON object with a 'data' field containing workflow details, a 'status' field ('ok' on success), and an 'roi_proof' object that includes a compression_ratio_pct (e.g. 91.4%) demonstrating the token reduction achieved by the distillation process.","failureModes":["Missing or invalid x402 USDC payment on Base causes 402 Payment Required response","Invalid 'type' field (must be 'http') causes schema validation error","Unsupported HTTP method in inner input object causes rejection","Empty or malformed query param returns empty or error data","Network timeout or service unavailability returns no response"],"whenToPreferThis":"Choose this endpoint when you need to programmatically discover or trigger AgentDiet's context compression workflows, especially in agent-to-agent (A2A) or MCP pipelines where reducing token usage in context windows is a primary goal. Prefer it over generic summarization APIs when you need deterministic, measurable compression ratios with cryptographic payment settlement on Base via x402/L402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:37.312Z","isFirstParty":false,"canonicalSlug":"agentdiet-rag-workflow-distiller-bc43728f"}