{"uid":"cap_3N37l9I2BinsXWXdtAQl0","slug":"agentdiet-slippage-estimator-6acc5509","name":"AgentDiet Slippage Estimator","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/slippage-estimator?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":{"token":{"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_Ds91Jbuf5o_IxUQxjYpVd","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":"Estimates token slippage/compression ratio for AI context window distillation, returning a compression efficiency proof","exampleAgentPrompt":"Before I compress my agent's context, can you run a slippage estimate using a GET request to see what compression ratio I'd get — I want to know the ROI proof before committing to the full token diet?","exampleUseCases":[{"title":"Pre-compression ROI check for agent pipeline","prompt":"I'm about to run a big context distillation job — can you first check the slippage estimator to see what compression ratio I can expect and whether it's worth the cost?"},{"title":"Token budget planning for LLM workflow","prompt":"I need to figure out how much I'll save on tokens before I commit to distilling this context. Can you hit the slippage estimator and tell me the expected compression percentage?"},{"title":"Benchmarking context efficiency before deployment","prompt":"We're evaluating whether to use AgentDiet for our agent fleet. Can you run the slippage estimator with a GET request and report back the compression ratio proof so I can compare it against our current approach?"}],"resultDescription":"Returns a JSON object with a status field ('ok'), a data object containing slippage/compression details, and an roi_proof object that includes a compression_ratio_pct value (e.g. 91.4%) indicating how much the context can be reduced.","failureModes":["Missing required 'input' object returns validation error","Invalid method enum value (not GET or POST) causes rejection","Network or payment failure (x402 USDC payment not settled) returns 402 Payment Required","Empty or malformed token query parameter may return incomplete estimate","Service unavailability returns non-200 status with error message"],"whenToPreferThis":"Use this endpoint when you need a lightweight, low-cost ($0.01 USDC) pre-flight check before committing to a full context distillation job. It's ideal for agents that want to estimate ROI and compression efficiency before processing large context windows, without running the full distillation pipeline. Prefer this over the full distillation endpoint when you only need a ratio estimate, not the actual compressed output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:26.544Z","isFirstParty":false,"canonicalSlug":"agentdiet-slippage-estimator-6acc5509"}