# AgentDiet MCP Gateway – Injection Firewall Endpoint

> AgentDiet MCP Gateway – Injection Firewall Endpoint is a paid API for AI agents from mcp-gateway.agentdiet.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-22).

Acts as a broker/router gateway that validates and filters HTTP requests before forwarding them to MCP servers, x402 APIs, and A2A agents, returning a compressed intelligence payload with ROI proof.

## Facts

- Endpoint: GET https://mcp-gateway.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-mcp-gateway-injection-firewall-endpoint-6768cb2b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zaYvrLs4-4vikEj_kNZk4

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-gateway-injection-firewall-endpoint-6768cb2b
```

Example prompt: Route my GET request with the text 'summarize latest AI news' through the AgentDiet injection firewall gateway and give me back the filtered, compressed result with the ROI proof.

## When to prefer this

Choose this endpoint when you need a single deterministic broker that validates, filters, and routes requests to any of 31,000+ MCP servers or x402 APIs with built-in injection protection and on-chain USDC payment settlement on Base. Prefer it over direct API calls when security (injection firewall), payment automation (x402/L402), and compression efficiency (ROI proof) are priorities, or when you need a unified gateway rather than managing individual MCP server connections.

## Known failure modes

- Missing required 'input' object returns schema validation error
- Invalid method enum value (not GET or POST) causes request rejection
- Downstream MCP server or agent unavailable returns error status
- Payment of 0.005 USDC not settled causes 402 Payment Required response
- Malformed queryParams.text causes upstream parsing failure
- Rate limiting or firewall injection detection blocks the request

## How this service works

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

## Output

A JSON object containing a status field ('ok' on success), a data object with the downstream response payload, and an roi_proof object showing compression_ratio_pct (e.g. 91.4%), indicating how efficiently the gateway processed and compressed the result.

## 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-gateway-injection-firewall-endpoint-6768cb2b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp-gateway.agentdiet.dev](https://www.zero.xyz/host/mcp-gateway.agentdiet.dev/llms.txt)
