{"uid":"cap_1OIjQew3uSYj_70Qs_Xfe","slug":"agentdiet-prompt-compress-fe8b211f","name":"AgentDiet Prompt 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/prompt-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_JpkTUQB8BQFeTY_E0kugR","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 prompt or web URL's content via HTTP GET, returning compressed data with a compression ratio proof","exampleAgentPrompt":"Can you compress the content at https://example.com/long-article using GET mode so I can fit it into my LLM context window more efficiently?","exampleUseCases":[{"title":"Reduce LLM context costs for long pages","prompt":"Compress the content at https://docs.example.com/reference/api using GET mode — I want to know the compression ratio and get the condensed version so I can feed it to my model without burning through tokens."},{"title":"Summarize large prompt before inference","prompt":"Take this URL https://blog.company.com/2024-annual-report and compress it for me in GET mode so I can use the result as a compressed context in my next AI call — what's the compression ratio I'll get?"},{"title":"Optimize agent memory footprint","prompt":"I need to compress the content at https://wiki.internal/runbook using GET mode to shrink it before storing in my agent's memory — can you give me the compressed output and tell me how much it was reduced?"}],"resultDescription":"A JSON object with a 'data' field containing the compressed content, a 'status' field ('ok' on success), and a 'roi_proof' object containing 'compression_ratio_pct' indicating how much the content was compressed (e.g. 91.4% compression).","failureModes":["Missing required 'input' field returns validation error","Invalid or unreachable URL results in fetch failure","Unsupported HTTP method enum value causes schema rejection","Empty or already-minimal content may yield low compression ratio","Payment failure (insufficient USDC balance) blocks request"],"whenToPreferThis":"Use this endpoint when an AI agent needs to reduce token usage before passing web content or long prompts to an LLM, and you want a measurable compression ratio proof. Prefer this over manual summarization when deterministic, reproducible compression with ROI metrics is needed, especially in cost-sensitive pipelines paying per token.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:42:56.250Z","isFirstParty":false,"canonicalSlug":"agentdiet-prompt-compress-fe8b211f"}