# 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 defi-yield.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 natural language query, routing the call through a safe-proxy with prompt-injection firewall and 85% token compression.

## Facts

- Endpoint: POST https://defi-yield.agentdiet.dev/v1/swarm-execute?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Provider: defi-yield.agentdiet.dev
- Website: https://defi-yield.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/defi-yield-agentdiet-dev-universal-a2a-mcp-tool-discovery-safe-proxy-666b2a8a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6DNkQK_bpN8tX1LEODo_A

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 defi-yield-agentdiet-dev-universal-a2a-mcp-tool-discovery-safe-proxy-666b2a8a -d '<json body>'
```

Example prompt: Search the MCP tool index for anything that can do 'company lead enrichment' and route the best match through the safe proxy — use query 'company enrichment'.

## When to prefer this

Choose this endpoint when an agent needs to discover and route to any of 500+ MCP or A2A tools through a single connection, especially when token budget is tight (85% compression) or when untrusted content must be firewall-screened before routing. Prefer over direct MCP connections when you don't know which specific tool to call, or when you need a safe-proxy layer between your agent and external tools.

## Known failure modes

- Empty or too-vague query returns no matches or low-confidence results
- Prompt-Guard firewall blocks queries flagged as injection attempts, returning a rejection
- Upstream MCP server unavailable causing partial or empty result set
- Rate limiting or payment failure (HTTP 402) when credits are exhausted
- Invalid idempotency key format causes request rejection

## 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://defi-yield.agentdiet.dev/v1/swarm-execute)

## Output

Returns a JSON object listing matched MCP servers or A2A tool endpoints relevant to the query, with compressed metadata (85% token reduction) and firewall-screened payloads indicating tool names, capabilities, and connection details.

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