{"uid":"cap_VIjcJXpB4dLWKwTxvRj2W","slug":"agentdiet-injection-firewall-a2a-context-window-de-bloater-568d2163","name":"AgentDiet Injection Firewall — A2A Context Window De-Bloater","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/injection-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_iq2ENtqUnkh35PjFYSe0j","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":"Distills and compresses AI context windows by filtering injected or bloated text, returning a leaner payload with a compression ratio proof.","exampleAgentPrompt":"Run this agent context text through AgentDiet's injection firewall to strip any bloat or injected content and tell me the compression ratio you achieved.","exampleUseCases":[{"title":"Token cost reduction before LLM call","prompt":"Before I send this 4,000-token system prompt to GPT-4, run it through AgentDiet to compress it and show me how much smaller it gets — I want to cut my API costs."},{"title":"Prompt injection defense for agent pipeline","prompt":"I have incoming user text that might contain prompt injection attacks — can you pass it through AgentDiet's injection firewall and give me back the sanitized, de-bloated version?"},{"title":"Context window fit check for long document","prompt":"This document is too large to fit in my agent's context window. Run it through AgentDiet and tell me the compression ratio so I know if it'll fit after distillation."}],"resultDescription":"Returns a JSON object with a 'status' field ('ok'), a 'data' field containing the processed output, and an 'roi_proof' object showing the compression_ratio_pct (e.g. 91.4%), indicating how much the input was compressed.","failureModes":["Missing required 'input' object returns a validation error","Invalid HTTP method enum value causes schema rejection","Empty or null 'text' query parameter may result in zero compression","Payment not settled in USDC on Base causes 402 rejection","Malformed JSON input body returns parsing error"],"whenToPreferThis":"Choose this endpoint when you need to deterministically compress or sanitize agent context windows before passing them to an LLM, especially when injection attack filtering is also required. It is particularly useful in A2A and MCP pipelines where token costs and context length limits are a concern. Prefer this over general summarization APIs when you need a verifiable compression ratio proof and deterministic behavior rather than probabilistic summarization.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:31.391Z","isFirstParty":false,"canonicalSlug":"agentdiet-injection-firewall-a2a-context-window-de-bloater-568d2163"}