# AgentDiet MCP Injection Firewall

> AgentDiet MCP Injection Firewall 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).

Filters and validates MCP (Model Context Protocol) injections to protect AI agent context windows from bloat and malicious content.

## Facts

- Endpoint: GET https://status.agentdiet.dev/v1/mcp-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-mcp-injection-firewall-38295c30
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YJo-NA8PdZGthW0IufdNa

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-mcp-injection-firewall-38295c30
```

Example prompt: Run this incoming MCP text payload through the AgentDiet injection firewall to check if it's safe and to see how much it compresses before I inject it into my agent's context window.

## When to prefer this

Choose this endpoint when you need to both validate and compress incoming MCP payloads before injecting them into an agent context window, especially in A2A or B2A pipelines where untrusted external content is involved. It is particularly suited for agents operating under token budget constraints who need proof of compression alongside safety validation, and for workflows using x402/L402 micropayment-gated APIs on Base.

## Known failure modes

- Missing or malformed 'input' object returns validation error
- Invalid method enum value (not GET or POST) causes schema rejection
- Empty or absent 'text' query parameter may return empty data with no compression proof
- Service unavailability returns non-200 status with no ROI proof
- Payment not settled in USDC on Base results in 402 Payment Required response

## 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' or error), a data payload containing the processed/filtered content, and an roi_proof object showing the compression_ratio_pct achieved (e.g. 91.4%), confirming the safety and compactness of the injected context.

## 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-mcp-injection-firewall-38295c30/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)
