{"uid":"cap_-QCPXtFrP1lOBi3SvKjDS","slug":"agentdiet-token-scanner-081f5b76","name":"AgentDiet Token Scanner","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/token-scanner?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_zlIetkNy2bHz1kLSOKpRJ","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":"Scans and analyzes a token to measure context window compression ratio and token efficiency for AI agent workloads","exampleAgentPrompt":"Scan this token for me and tell me my context compression ratio — I want to see how much I can shrink my AI context window and what the ROI proof looks like.","exampleUseCases":[{"title":"Agent context window audit","prompt":"Can you scan my current context token and show me what compression ratio I could achieve? I want to know if my agent's context window is bloated and by how much."},{"title":"Token efficiency check before deployment","prompt":"Before I deploy this agent, scan the token and give me the ROI proof on compression — I need to know the compression ratio percentage so I can decide if it's worth running a diet pass."},{"title":"Benchmark context distillation savings","prompt":"I want to benchmark my token against AgentDiet's scanner — run a GET scan on this token string and return the compression ratio so I can see how many tokens I'd save."}],"resultDescription":"Returns a JSON object with a status field ('ok'), a data object containing scan results, and an roi_proof object showing the compression_ratio_pct (e.g. 91.4%) — indicating how much the context window can be reduced.","failureModes":["Missing required 'input' object returns validation error","Invalid or malformed token query parameter may return empty data","Unpaid or failed x402 USDC payment results in 402 Payment Required response","Unsupported HTTP method enum value returns schema validation error","Network timeout or node unavailability returns service error"],"whenToPreferThis":"Use this endpoint when you need a quick, cheap ($0.01 USDC) scan of a token to measure context compression potential before committing to a full distillation pass. Prefer it over manual token counting when you want a deterministic ROI proof metric (compression_ratio_pct) that can guide agent cost optimization decisions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:42:49.512Z","isFirstParty":false,"canonicalSlug":"agentdiet-token-scanner-081f5b76"}