{"uid":"cap_BZQIFH13VLj1JXw6E3qR8","slug":"agentdiet-prompt-firewall-context-window-distiller-43b63de7","name":"AgentDiet Prompt Firewall — Context Window Distiller","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://status.agentdiet.dev settling in USDC on Base.","url":"https://status.agentdiet.dev/v1/prompt-firewall?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":{"text":{"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.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_z6NIubchF8NPwPM5IXjIX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compresses and filters incoming text prompts to reduce token count by up to 91% before passing them to downstream AI agents or LLMs.","exampleAgentPrompt":"Can you run this prompt through AgentDiet's prompt firewall to strip out the bloat and compress it — I want to cut the token count as much as possible before sending it to the LLM?","exampleUseCases":[{"title":"Shrink RAG context before LLM call","prompt":"I've got a 10,000-token retrieval-augmented generation context that's too big for my model's window — can you compress it through AgentDiet's distiller to trim it down before I pass it to the LLM?"},{"title":"Reduce agent memory token cost","prompt":"My AI agent's conversation history is ballooning — can you run it through the prompt firewall to distill it and cut the token count before I store it back in memory?"},{"title":"Pre-filter system prompt for cost savings","prompt":"Before each API call I send a huge system prompt — can you push it through AgentDiet to compress it so I'm spending less on tokens every time?"}],"resultDescription":"Returns a JSON object with a 'data' field containing the compressed/distilled output text, a 'status' field ('ok' on success), and an 'roi_proof' object showing the compression_ratio_pct achieved (e.g. 91.4%), confirming how much the input was reduced.","failureModes":["Missing or empty 'text' query parameter returns an error or empty data","Invalid HTTP method (not GET or POST) rejected by schema","Payment failure via x402/USDC prevents execution","Extremely short input with no compressible content may yield low compression ratio","Network timeout on status.agentdiet.dev returns no response"],"whenToPreferThis":"Choose this endpoint when an AI agent or pipeline needs to reduce token count before sending prompts to expensive LLMs, when context windows are near their limit, or when per-token costs need to be minimized in a real-time A2A or MCP workflow. It is particularly suited for deterministic, repeatable compression pipelines that settle micropayments in USDC on Base via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:55.788Z","isFirstParty":false,"canonicalSlug":"agentdiet-prompt-firewall-context-window-distiller-43b63de7"}