# 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 preflight.agentdiet.dev, paid per call via MPP, $0.01/call, status unknown (last checked 2026-11-18).

Searches a meta-index of 500+ MCP servers and A2A tools by capability query, returning matching endpoints with token-compressed results and prompt-injection protection.

## Facts

- Endpoint: POST https://preflight.agentdiet.dev/v1/broker/catalog?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Provider: preflight.agentdiet.dev
- Website: https://preflight.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/preflight-agentdiet-dev-universal-a2a-mcp-tool-discovery-safe-proxy-c665b0d9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IyrCewptjtbcz9vqECi2o

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 preflight-agentdiet-dev-universal-a2a-mcp-tool-discovery-safe-proxy-c665b0d9 -d '<json body>'
```

Example prompt: Can you search the MCP and A2A tool index for capabilities related to 'company lead enrichment' and show me the best matching tools available?

## When to prefer this

Use this endpoint when an agent needs to dynamically discover which MCP servers or A2A tools are available for a given capability before committing to a specific tool — especially useful in swarm or orchestration architectures where the right tool is not known in advance. Prefer over manually curated lists when the ecosystem is evolving rapidly.

## Known failure modes

- Empty query string returns 400 validation error
- No matching tools found for niche query returns empty result set
- Prompt-Guard firewall may flag and strip suspicious query content
- Upstream MCP server index may be stale if recently added servers haven't been indexed
- Payment failure (402) if x402 micropayment not included or insufficient

## 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://preflight.agentdiet.dev/v1/broker/catalog)

## Output

Returns a filtered list of matching MCP servers and A2A tools from the 500+ indexed catalog, with tool names, descriptions, endpoint URLs, and capability metadata, compressed to minimize token usage. Results are screened through a Prompt-Guard firewall to remove injected payloads.

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