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

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

## Facts

- Endpoint: POST https://polymarket-odds.agentdiet.dev/v1/b2a-router?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Provider: polymarket-odds.agentdiet.dev
- Website: https://polymarket-odds.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/polymarket-odds-agentdiet-dev-universal-a2a-mcp-tool-discovery-safe-320961e6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZmKiCgKFboLbW2UyQOEQN

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 polymarket-odds-agentdiet-dev-universal-a2a-mcp-tool-discovery-safe-320961e6 -d '<json body>'
```

Example prompt: Search across all available MCP servers and A2A tools to find something that handles 'context compression' — I want the best matching endpoints with their descriptions compressed for token efficiency.

## When to prefer this

Choose this endpoint when an AI agent needs to dynamically discover which MCP servers or A2A tools are available for a given capability at runtime, rather than hardcoding tool lists. Ideal for swarm orchestrators, meta-agents, or agent frameworks that need to route tasks to the best available specialized tool. The built-in Prompt-Guard firewall makes it safer than querying tool registries directly.

## Known failure modes

- Empty or too-short query returns no results or broad matches
- Query matches no indexed tools — returns empty results set
- Payment not processed via x402 — request blocked with 402 status
- Malicious prompt detected by Prompt-Guard firewall — request rejected
- Downstream MCP server unavailable — partial results returned
- Invalid or malformed query schema — 400 validation error

## 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://polymarket-odds.agentdiet.dev/v1/b2a-router)

## Output

Returns a structured object listing matching MCP servers or A2A tools from the 500+ indexed catalog, with token-compressed descriptions (up to 85% compression), capability metadata, and routing recommendations, filtered through a Prompt-Guard firewall to prevent injection attacks.

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