{"uid":"cap_tDQuoz9ol3aE_GIIKZc0R","slug":"agentdiet-rag-diet-preflight-context-window-distiller-e5b62495","name":"AgentDiet RAG Diet Preflight — 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/preflight?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"}}}},"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_p7IaSNfAI2uR5THlf5DpO","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":"Preflight check that validates a URL or HTTP request configuration before submitting it to the AgentDiet context compression pipeline","exampleAgentPrompt":"Run a preflight check on this GET request to https://example.com/api/data to see if it's compatible with AgentDiet's context compression pipeline and what kind of compression ratio I can expect.","exampleUseCases":[{"title":"Pre-compression readiness check for agent","prompt":"Before I run the full AgentDiet compression on my data feed at https://news-api.example.com/articles, can you do a preflight check to confirm it'll work and show me the expected compression ratio?"},{"title":"Validate POST request for context diet","prompt":"I want to preflight a POST request to https://my-rag-source.com/documents with AgentDiet to make sure the pipeline will accept it before I spend tokens on the full run."},{"title":"ROI estimate before token reduction job","prompt":"Can you do an AgentDiet preflight on https://longform-context.example.com/page to get the roi_proof and compression ratio so I know how many tokens I'll save before committing to the full diet?"}],"resultDescription":"Returns a JSON object with a status field ('ok'), a data object, and an roi_proof containing the estimated compression_ratio_pct (e.g. 91.4%), indicating how much the context can be reduced before the full pipeline is invoked.","failureModes":["Invalid or unreachable URL returns error status","Unsupported HTTP method (not GET or POST) causes schema validation failure","Missing required 'input' object returns 400-level error","URL parameter absent from queryParams when required","Payment not settled in USDC on Base causes x402 payment failure"],"whenToPreferThis":"Use this endpoint when you need to validate a URL or HTTP request configuration before committing to the full AgentDiet context compression pipeline — especially to confirm compatibility and preview the expected compression ratio (roi_proof) without paying for the full distillation job. Prefer this over calling the main pipeline directly when you want to fail fast or estimate token savings upfront.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:42:39.091Z","isFirstParty":false,"canonicalSlug":"agentdiet-rag-diet-preflight-context-window-distiller-e5b62495"}