{"uid":"cap_FmrUigW7UTi9lpqGTl423","slug":"agentdiet-dex-context-compression-node-3c8106cc","name":"AgentDiet DEX Context Compression Node","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/dex?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_Gf329Fj6-9KGP-n7v3543","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":"Retrieves DEX (decentralized exchange) data after compressing AI agent context windows to reduce token usage by up to 91%","exampleAgentPrompt":"Use AgentDiet to compress my current context window and fetch the DEX data — I want to see the compression ratio I'm getting and the actual payload, paying via USDC on Base.","exampleUseCases":[{"title":"Token cost reduction for agent pipeline","prompt":"My AI agent is burning through tokens on every call — can you run my context through AgentDiet's DEX node to compress it and show me how much I'm saving, like what compression ratio I'm hitting?"},{"title":"RAG pipeline de-bloating before LLM call","prompt":"Before we send this big retrieval result to the language model, compress it through AgentDiet's context distiller and give me back the slimmed-down payload along with the ROI proof showing how much was cut."},{"title":"Micropayment-gated DEX data fetch","prompt":"Pull the DEX data from AgentDiet using a GET request with my token, settle the $0.01 USDC payment on Base, and show me the compressed output with the compression ratio proof."}],"resultDescription":"Returns a JSON object with a 'data' field containing the compressed/distilled output, a 'status' field (e.g. 'ok'), and an 'roi_proof' object including a 'compression_ratio_pct' value (e.g. 91.4%) demonstrating how much the context was reduced.","failureModes":["Payment not settled — 402 response if USDC payment on Base is not confirmed","Invalid token query parameter — endpoint may return error or empty data","Unsupported HTTP method — only GET and POST are accepted per schema","Schema validation failure — input object missing required 'type' or 'method' fields","Service unavailability — node may be offline or unreachable at rag-diet.agentdiet.dev"],"whenToPreferThis":"Choose this endpoint when your AI agent needs to reduce context window size before passing data to an LLM, especially in cost-sensitive pipelines where token usage is a bottleneck. It is particularly useful when you need a proof-of-compression (ROI proof) to verify savings. Prefer it over generic summarization tools when you need deterministic, metered, micropayment-gated compression with Base/USDC settlement via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:21.783Z","isFirstParty":false,"canonicalSlug":"agentdiet-dex-context-compression-node-3c8106cc"}