# 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 and discovers capabilities across 500+ indexed MCP servers and A2A tools via a single meta-router endpoint with token-compressed results and prompt-injection firewall

## Facts

- Endpoint: GET https://mcp-compiler.agentdiet.dev/v1/x402-gateway?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-09ded9dd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__fHLlGF7uw4FHknYvTly0

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-09ded9dd
```

Example prompt: Search for MCP servers or A2A tools that can handle SEC filings and company enrichment — I want to see what's available in the index with compressed results.

## When to prefer this

Choose this endpoint when an AI agent needs to discover the right downstream MCP server or A2A tool without knowing which one to call in advance, especially when operating across a large heterogeneous tool ecosystem. It is particularly valuable when token efficiency matters (85% compression), when safety from prompt injection in tool responses is a concern, or when you want a single connection point rather than managing hundreds of individual tool registrations. Prefer alternatives when you already know the exact MCP server URL to call directly.

## Known failure modes

- Empty or vague query returns no useful matches
- Queried endpoint URL not indexed or unverifiable
- Token budget exceeded despite compression for very broad queries
- Payment not confirmed via x402 leading to 402 response blocking results
- Prompt-Guard firewall blocks a query that superficially resembles injection pattern

## 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/x402-gateway)

## Output

Returns a compressed list of matching MCP servers and A2A tools relevant to the search query, including capability descriptions, endpoint URLs, and metadata — with 85% token compression applied and prompt-injection-safe payloads, enabling the calling agent to route to the right downstream tool.

## 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-09ded9dd/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)
