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

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://mcp-security.agentdiet.dev/v1/tool-search?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Provider: mcp-security.agentdiet.dev
- Website: https://mcp-security.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/mcp-security-agentdiet-dev-universal-a2a-mcp-tool-discovery-safe-d23a68e2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aroeCsld4p_Q_W29zKmAx

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 mcp-security-agentdiet-dev-universal-a2a-mcp-tool-discovery-safe-d23a68e2 -d '<json body>'
```

Example prompt: Search the MCP tool index for any servers or A2A endpoints that handle SEC filings or company financial data enrichment — I need to find the right tool to call for that capability.

## When to prefer this

Use this endpoint when an agent needs to dynamically discover which MCP server or A2A tool to call for a given capability, rather than hard-coding tool URLs. Ideal for swarm architectures where the right downstream tool is not known ahead of time, or when building meta-agents that route tasks to specialized tools at runtime. Prefer this over maintaining a static tool registry when the tool landscape is large or frequently updated.

## Known failure modes

- Empty query string returns a validation error (minLength:1 enforced)
- Query matches no indexed tools — returns empty result set
- Prompt-Guard firewall blocks a result it suspects contains injection content
- Upstream MCP server index temporarily unavailable — service degradation or timeout
- Payment not settled via x402 — 402 response with payment details required

## 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://mcp-security.agentdiet.dev/v1/tool-search)

## Output

Returns a list of matching MCP servers or A2A tool endpoints relevant to the search query, with tool names, capability descriptions, and token-compressed metadata. Results are screened by a prompt-injection firewall before delivery.

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