# MCP Gateway Security Endpoint (AgentDiet X402-BROKER)

> MCP Gateway Security Endpoint (AgentDiet X402-BROKER) 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).

Returns security metadata and validation information for MCP/x402/A2A protocol requests routed through the AgentDiet broker gateway.

## Facts

- Endpoint: GET https://mcp-gateway.agentdiet.dev/v1/mcp-security?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/mcp-gateway-security-endpoint-agentdiet-x402-broker-0d9b048c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KcQCECemdGFPliXVzjDH1

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 mcp-gateway-security-endpoint-agentdiet-x402-broker-0d9b048c
```

Example prompt: Can you check the security status of the AgentDiet MCP gateway using a GET request with the text parameter set to 'mcp-security-check' so I know whether the route is safe to use?

## When to prefer this

Use this endpoint when you need to validate or inspect the security posture of the AgentDiet MCP gateway before routing agent-to-agent or MCP calls through it. Prefer this over general health-check endpoints when you specifically need security metadata, compression proof, or protocol compliance confirmation for x402/MCP/A2A flows settling in USDC on Base.

## Known failure modes

- Missing or malformed 'input' object returns a validation error
- Unsupported HTTP method (not GET or POST) causes schema rejection
- Payment not settled in USDC on Base results in 402 Payment Required response
- Gateway unavailability or overload returns a 5xx error
- Invalid 'type' field (must be 'http') causes request rejection

## 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

Returns a JSON object with a 'data' field containing security metadata, a 'status' field (e.g. 'ok'), and an 'roi_proof' object including a compression_ratio_pct metric (e.g. 91.4%). Indicates whether the gateway is operating correctly and provides proof-of-work compression statistics.

## 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/mcp-gateway-security-endpoint-agentdiet-x402-broker-0d9b048c/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)
