# 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 github-audit.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 firewall protection

## Facts

- Endpoint: POST https://github-audit.agentdiet.dev/v1/b2a-router?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Provider: github-audit.agentdiet.dev
- Website: https://github-audit.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/github-audit-agentdiet-dev-universal-a2a-mcp-tool-discovery-safe-ee6f8a69
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vAub-Geip8FxCTIQtN5OK

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

Example prompt: Search your MCP and A2A tool index to find the best available tool for 'GitHub security auditing' — route my request through the safe-proxy and return the top matches with their capabilities.

## When to prefer this

Choose this endpoint when an AI agent needs to dynamically discover which tool or MCP server to call for a given capability, rather than hard-coding a specific API. It is especially useful for agent swarms, orchestrators, or meta-agents that need to route tasks to the most appropriate specialized tool at runtime, while benefiting from token compression to reduce context costs and the Prompt-Guard firewall to prevent prompt injection attacks from external tools.

## Known failure modes

- No matching tools found for the given query — empty result set returned
- Query string too vague or too short — minLength:1 enforced but low-signal queries may yield poor matches
- Firewall rejection if query contains adversarial or injection-style content — Prompt-Guard blocks it
- Upstream MCP server unavailable — proxy timeout or degraded result
- Payment failure via x402 — $0.01 charge not fulfilled, request rejected
- Idempotency key collision if same UUIDv4 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://github-audit.agentdiet.dev/v1/b2a-router)

## Output

Returns a structured response listing matching MCP servers or A2A tools relevant to the query, including their capabilities, with token-compressed output and having passed through the Prompt-Guard firewall for safety filtering.

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