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

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

## Facts

- Endpoint: GET https://polymarket-odds.agentdiet.dev/v1/mcp-gateway?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-11-21
- 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-96feed68
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VWkEm2_cIiA_xFPOOgPRW

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-96feed68
```

Example prompt: Search the MCP gateway index for tools that handle SEC filings or company financial data — show me up to 20 results.

## When to prefer this

Choose this endpoint when an agent needs to dynamically discover which MCP servers or A2A tools exist for a given capability, rather than hard-coding a specific tool URL. It is especially useful for swarm orchestrators that need to route tasks to the best available tool at runtime, or when building agent pipelines that must adapt to new tools without redeployment. The built-in Prompt-Guard firewall adds safety for untrusted tool responses.

## Known failure modes

- Empty results if query terms match no indexed capabilities
- Pagination cursor expiry for stale or invalid cursor values
- Rate limiting or 402 payment required if x402 payment header is missing or insufficient
- Malformed query (too short or empty) rejected with validation error
- Service unavailable if upstream MCP index is unreachable

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

## Output

A paginated list of matching MCP servers and A2A tools, including endpoint URLs, capability descriptions, and token-compressed metadata. Results pass through a Prompt-Guard firewall to filter injected content. A cursor is returned for fetching additional pages.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "limit": {
   "type": "integer",
   "default": 20,
   "maximum": 100,
   "minimum": 1,
   "description": "Maximum number of items to return per page (1-100)"
  },
  "query": {
   "type": "string",
   "minLength": 1,
   "description": "Capability search query (e.g. 'context compression', 'github security', 'sec filings', 'company enrichment') or endpoint URL to verify"
  },
  "cursor": {
   "type": "string",
   "description": "Opaque pagination cursor for fetching the next page"
  }
 }
}
```

## 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-96feed68/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)
