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

Discovers and routes queries across 500+ MCP servers and A2A tools with token compression and prompt-injection firewall protection.

## Facts

- Endpoint: POST https://mcp-security.agentdiet.dev/v1/swarm-router?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-6a8938b2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yHz4eJVacJNJlwAO8gW0M

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

Example prompt: Search across all the MCP servers and A2A tools you know about to find me a capability for SEC filings enrichment — I want to see the best matching tools with their compressed descriptions.

## When to prefer this

Choose this endpoint when an agent needs to dynamically discover capabilities across a broad index of 500+ MCP and A2A tools without maintaining separate connections to each server. Ideal for meta-orchestration layers, agent swarms, or workflows where the right tool is unknown ahead of time. The built-in prompt-injection firewall makes it safer than raw MCP proxying, and 85% token compression reduces context overhead significantly compared to calling individual tool registries.

## Known failure modes

- Query too vague returns low-confidence or empty matches
- Prompt-Guard firewall blocks a query flagged as injection attempt
- External MCP server down or unreachable causing partial results
- Query string too short (minLength:1 violation) returns validation error
- Rate limit or payment failure on x402 micropayment returns 402 error

## 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/swarm-router)

## Output

Returns matched MCP server or A2A tool entries relevant to the query, with token-compressed descriptions, routing metadata, and prompt-guard firewall validation applied to prevent injection attacks from untrusted tool responses.

## 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-6a8938b2/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)
