# AgentDiet Injection Firewall — A2A Context Window De-Bloater

> AgentDiet Injection Firewall — A2A Context Window De-Bloater is a paid API for AI agents from status.agentdiet.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-22).

Distills and compresses AI context windows by filtering injected or bloated text, returning a leaner payload with a compression ratio proof.

## Facts

- Endpoint: GET https://status.agentdiet.dev/v1/injection-firewall?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-injection-firewall-a2a-context-window-de-bloater-568d2163
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VIjcJXpB4dLWKwTxvRj2W

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentdiet-injection-firewall-a2a-context-window-de-bloater-568d2163
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://status.agentdiet.dev settling in USDC on Base.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "status": "ok",
  "roi_proof": {
   "compression_ratio_pct": 91.4
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-injection-firewall-a2a-context-window-de-bloater-568d2163/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from status.agentdiet.dev](https://www.zero.xyz/host/status.agentdiet.dev/llms.txt)
