# Universal A2A & MCP Tool Discovery, Safe-Proxy & Swarm Router

> Universal A2A & MCP Tool Discovery, Safe-Proxy & Swarm Router is a paid API for AI agents from mcp-compiler.agentdiet.dev, paid per call via MPP, $0.01/call, status unknown (last checked 2026-10-21).

Searches a meta-index of 500+ MCP servers and A2A tools by capability query, returning token-compressed results through a Prompt-Guard firewall

## Facts

- Endpoint: GET https://mcp-compiler.agentdiet.dev/v1/agent-router?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Provider: mcp-compiler.agentdiet.dev
- Website: https://mcp-compiler.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/mcp-compiler-agentdiet-dev-universal-a2a-mcp-tool-discovery-safe-48ff924a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6CMIuxePQmrEnzdbAnB3B

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-compiler-agentdiet-dev-universal-a2a-mcp-tool-discovery-safe-48ff924a
```

Example prompt: Search the MCP and A2A tool index for servers that handle 'SEC filings' — I need to find the right endpoint to route my agent to for financial document retrieval.

## When to prefer this

Choose this endpoint when an AI agent needs to dynamically discover the right MCP server or A2A tool for a given capability at runtime, rather than hard-coding a specific integration. Especially useful for swarm orchestration, meta-agent routing, or when the capability domain is unknown at build time. The built-in Prompt-Guard firewall makes it preferable when prompt-injection risk from third-party tool descriptions is a concern.

## Known failure modes

- Query too vague — returns no matching tools or low-relevance results
- Queried endpoint URL is unreachable or returns non-compliant JSON-RPC — flagged by firewall
- Payment not completed via x402 — returns HTTP 402 blocking result
- Rate limiting or quota exceeded — request rejected
- Index out of date — newly published MCP servers not yet indexed

## 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://mcp-compiler.agentdiet.dev/v1/agent-router)

## Output

A list of matching MCP servers and A2A tool endpoints relevant to the capability query, with token-compressed descriptions (85% compression via Prompt-Guard firewall), routing metadata, and endpoint URLs for direct use by an agent swarm.

## 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/mcp-compiler-agentdiet-dev-universal-a2a-mcp-tool-discovery-safe-48ff924a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp-compiler.agentdiet.dev](https://www.zero.xyz/host/mcp-compiler.agentdiet.dev/llms.txt)
