# 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).

Indexes 500+ MCP servers and A2A tools, routes queries to the best-matching tool with 85% token compression and a built-in prompt-injection firewall.

## Facts

- Endpoint: POST https://preflight.agentdiet.dev/v1/swarm-execute?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-e0c060eb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XexARTelmcqFXUa5AEnBe

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

Example prompt: Search the swarm for any MCP or A2A tool that can handle SEC filings or company enrichment — find the best match and route my query there.

## When to prefer this

Use this endpoint when an agent needs to discover the right tool from a large universe of MCP servers and A2A agents without managing individual connections, especially when token budget is tight (85% compression) or when untrusted content must pass through a prompt-injection firewall before reaching downstream tools.

## Known failure modes

- No matching tool found for the query — returns empty or low-confidence match set
- Prompt-Guard firewall blocks a query flagged as prompt injection
- Upstream MCP server is unreachable or returns an error — surfaced as a proxy failure
- Malformed query string causes schema validation failure
- Rate limit or payment (x402) failure prevents execution

## 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/swarm-execute)

## Output

Returns matched tool metadata and proxied execution results from the best-fitting MCP server or A2A agent, with token-compressed output and Prompt-Guard firewall screening applied.

## 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-e0c060eb/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)
