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

Searches an index of 500+ MCP servers and A2A tools by capability keyword or URL, returning matching endpoints with token-compressed metadata and prompt-injection filtering.

## Facts

- Endpoint: GET https://onchain-risk.agentdiet.dev/v1/mesh?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Provider: onchain-risk.agentdiet.dev
- Website: https://onchain-risk.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/onchain-risk-agentdiet-dev-universal-a2a-mcp-tool-discovery-safe-1fec41c0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Fs0iLPtd691xH2mXE0L_r

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 onchain-risk-agentdiet-dev-universal-a2a-mcp-tool-discovery-safe-1fec41c0
```

Example prompt: Search the MCP and A2A tool index for 'github security' — show me up to 20 matching tools so I can pick the right one for my agent pipeline.

## When to prefer this

Choose this endpoint when an AI agent needs to dynamically discover new tools or MCP servers by capability at runtime, verify whether a specific endpoint is indexed, or route tasks to appropriate specialized tools without hardcoding integrations. Especially useful for swarm architectures needing a single connection to 500+ tools with built-in token compression and prompt-injection safety.

## Known failure modes

- Empty query string returns validation error
- No matching tools found returns empty results list
- Invalid cursor returns pagination error
- Rate limit or payment required (HTTP 402) if x402 payment not provided
- Upstream MCP server unavailable may reduce result coverage

## 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://onchain-risk.agentdiet.dev/v1/mesh)

## Output

A paginated list of matching MCP servers and A2A tools relevant to the search query, with capability descriptions, endpoint metadata, and a pagination cursor for fetching additional results. Results are token-compressed and filtered through a prompt-guard firewall.

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