# AgentDiet X402-Broker MCP Meta-Router

> AgentDiet X402-Broker MCP Meta-Router is a paid API for AI agents from mcp-gateway.agentdiet.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-22).

Routes agent queries across 500+ MCP servers and A2A tools via a single connection with token compression and prompt-guard firewall

## Facts

- Endpoint: GET https://mcp-gateway.agentdiet.dev/v1/x402-broker?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-x402-broker-mcp-meta-router-25126ce1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XecxqMd4i1FKz8zZZYazk

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-x402-broker-mcp-meta-router-25126ce1
```

Example prompt: Search across all available MCP servers and A2A tools to find something that can check live stock prices — route my query through the broker and return the best matching tool's result.

## When to prefer this

Choose this endpoint when you need to discover or call tools across a large ecosystem of MCP servers or A2A agents without managing individual connections. It is especially useful when token efficiency matters, when you don't know in advance which specific tool to use, or when you want a single payment-gated proxy that handles routing, compression, and safety filtering automatically.

## Known failure modes

- Invalid query parameter returns malformed routing response
- No matching MCP server found for the given query — data may be empty
- Payment not received results in 402 response blocking execution
- Prompt-Guard firewall blocks unsafe or adversarial queries
- Backend MCP server timeout causes delayed or null data response

## 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 status field, a data object containing the routed tool's response, and an roi_proof object showing the compression ratio achieved (e.g. 91.4% compression ratio).

## 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": {
      "query": {
       "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-x402-broker-mcp-meta-router-25126ce1/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)
