# AgentDiet A2A & MCP Meta-Router

> AgentDiet A2A & MCP Meta-Router is a paid API for AI agents from agentdiet.dev, paid per call via x402 or MPP, $0.01/call, status unknown (last checked 2026-10-20).

Discovers, proxies, and routes requests across 500+ MCP servers and A2A tools via a single connection with token compression and prompt-injection protection.

## Facts

- Endpoint: GET https://agentdiet.dev/v1/a2a-router?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402, MPP
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-a2a-mcp-meta-router-ea970f2b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I9MJ3jb0tAiBd6LYeTldp

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-a2a-mcp-meta-router-ea970f2b
```

Example prompt: Search across all the MCP servers and A2A tools you're connected to and find me something that can extract structured data from e-commerce pages — use the AgentDiet router so I only need one connection.

## When to prefer this

Choose this endpoint when your agent needs to discover or invoke tools across many MCP servers or A2A agents without managing individual connections, when you want built-in prompt-injection protection on untrusted tool outputs, or when token budget is a concern and you need compressed responses from multiple upstream tools via a single integration point.

## Known failure modes

- No matching tool found for the given query — returns empty results or 404
- Upstream MCP server unavailable — router returns timeout or 503
- Prompt-Guard firewall blocks a request flagged as a potential injection — returns rejection with reason
- Malformed input schema (missing required 'type' or 'method' fields) — returns 400 validation error
- Payment not fulfilled via x402 — returns 402 Payment Required

## How this service works

Single-connection meta-router indexing 500+ MCP servers & A2A tools with 85% token compression and Prompt-Guard firewall. (Live x402 v2, IETF MPP & MCP endpoint at https://agentdiet.dev/v1/a2a-router)

## Output

Returns a list of matching MCP servers or A2A tools for the query, or a proxied and token-compressed response from the routed tool, along with metadata about the selected endpoint and any prompt-injection flags raised by the Prompt-Guard firewall.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "minLength": 1,
   "description": "Capability search query (e.g. 'context compression', 'github security', 'sec filings', 'company enrichment') or endpoint URL to verify"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-a2a-mcp-meta-router-ea970f2b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentdiet.dev](https://www.zero.xyz/host/agentdiet.dev/llms.txt)
