{"uid":"cap_qnnYqr69xFv1YwxzIclBF","slug":"agentdiet-context-compress-214ecffa","name":"AgentDiet Context Compress","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://mcp-gateway.agentdiet.dev settling in USDC on Base.","url":"https://mcp-gateway.agentdiet.dev/v1/context-compress?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"},"mode":{"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.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KoqiO7H4aKadmSJ4NNDqR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compresses a URL's content by up to 91%+ to reduce token consumption when feeding web context to AI agents","exampleAgentPrompt":"Can you fetch and compress the content from https://example.com/long-article using GET mode so it fits in my context window more efficiently?","exampleUseCases":[{"title":"Token-efficient research pipeline","prompt":"Grab the content from https://arxiv.org/abs/2401.00001 and compress it as much as possible before you analyze it — I want to keep my token usage low."},{"title":"Agent reading a documentation page","prompt":"Fetch https://docs.someapi.com/reference and compress the page content so you can summarize the key endpoints without burning through my context window."},{"title":"Cost-saving news article ingestion","prompt":"Pull in the article at https://news.ycombinator.com/item?id=12345 and compress it first — I want the essential content without all the fluff so my agent pipeline stays cheap."}],"resultDescription":"A JSON object with a 'data' field containing the compressed content, a 'status' field ('ok'), and a 'roi_proof' object showing the compression_ratio_pct achieved (e.g. 91.4% compression).","failureModes":["Invalid or unreachable URL returns an error status","Missing required 'input' object or 'method' field causes validation failure","Unsupported HTTP method (not GET or POST) rejected by enum constraint","URL behind authentication or paywall may return empty or partial content","Rate limiting or payment failure (USDC settlement) may block the request"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to read web content but token cost or context window size is a constraint. It is particularly useful in multi-step agent pipelines where many URLs must be ingested cheaply. Prefer this over raw web scraping when you want a high compression ratio (90%+) delivered in a single paid API call settled in USDC on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:53.790Z","isFirstParty":false,"canonicalSlug":"agentdiet-context-compress-214ecffa"}