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

Meta-router that discovers, proxies, and routes queries across 500+ MCP servers and A2A tools with token compression and prompt-injection firewall protection.

## Facts

- Endpoint: POST https://onchain-risk.agentdiet.dev/v1/a2a-mesh?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-23
- 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-eb1c6d06
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZtASiJggDAJI9zAAAYKcN

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

Example prompt: Search the A2A mesh for tools that can do B2B lead enrichment — I need to find available MCP servers or A2A endpoints for that capability.

## When to prefer this

Use this endpoint when an AI agent needs to dynamically discover and route to the right MCP server or A2A tool from a large index without maintaining separate connections to each service. Ideal when the target capability is not known in advance and requires real-time search across 500+ tools, especially when token budget is constrained (85% compression) or when prompt-injection safety is required for untrusted tool responses.

## Known failure modes

- Query too vague returns too many unrelated results
- No matching tools found for a niche capability
- Prompt-Guard firewall blocks query if it resembles an injection attempt
- Payment required (HTTP 402) if x402 credit is not pre-authorized
- Downstream MCP server unavailable, causing partial results
- Idempotency-Key collision if reused across different queries

## 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/a2a-mesh)

## Output

Returns a list of matching MCP servers or A2A tool endpoints indexed by capability, including their metadata, endpoint URLs, and routing information, with token-compressed payloads and prompt-injection 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/onchain-risk-agentdiet-dev-universal-a2a-mcp-tool-discovery-safe-eb1c6d06/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)
