# 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, returning token-compressed results filtered through a Prompt-Guard firewall for safe, efficient agent tool discovery.

## Facts

- Endpoint: POST https://preflight.agentdiet.dev/v1/x402-gateway?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-8a0e498b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IZhCkfASe9qcXrAIYBnzb

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-8a0e498b -d '<json body>'
```

Example prompt: Search the agentdiet meta-router for MCP servers or A2A tools that handle 'SEC filings' — I want to find the best available tool and get a compact summary of what it does.

## When to prefer this

Choose this endpoint when an AI agent needs to discover which of 500+ MCP servers or A2A tools is best suited for a given capability, rather than hard-coding tool URLs. Especially useful in multi-agent swarm setups where routing decisions must be made dynamically. The built-in Prompt-Guard firewall makes it safer than querying external tool registries directly. Prefer over manual tool catalogs or raw MCP marketplace searches when token efficiency and security screening matter.

## Known failure modes

- Empty query string returns validation error (minLength:1 violated)
- Query matches no indexed tools — returns empty result set
- Firewall flags a suspicious query pattern and blocks the request
- Upstream MCP servers unreachable — partial or degraded results
- Payment not confirmed via x402 — 402 response blocking access
- Rate limiting or idempotency collision on repeated Idempotency-Key reuse

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

## Output

Returns a token-compressed list of matching MCP servers and A2A tools from the 500+ item index, including tool names, capability descriptions, and routing metadata. All results pass through a Prompt-Guard firewall to filter hidden injections. Compression targets 85% token reduction versus raw tool manifests.

## 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-8a0e498b/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)
