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

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://github-audit.agentdiet.dev/v1/x402-gateway?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-11-02
- 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-50696a55
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AUDeA0Ps0m1vNHM58E9OO

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

Example prompt: Search the MCP tool index for any servers or A2A tools that handle SEC filings and company enrichment — I want the best matching endpoints with their capabilities summarized.

## When to prefer this

Choose this endpoint when an AI agent needs to dynamically discover which MCP server or A2A tool to call for a given capability, rather than hardcoding tool URLs. Ideal for swarm architectures where the routing layer needs real-time tool lookup with safe proxying and token budget constraints.

## Known failure modes

- Query too vague returns zero or low-relevance matches
- Prompt-Guard firewall may block queries resembling injection attempts
- No MCP server in the index covers the requested capability
- Payment not processed (x402 response) if USDC authorization fails
- Malformed query string returns validation 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://github-audit.agentdiet.dev/v1/x402-gateway)

## Output

A JSON object listing matching MCP servers and A2A tools relevant to the query, with compressed descriptions, endpoint URLs, capability tags, and firewall-cleared routing metadata — approximately 85% token-reduced compared to raw tool manifests.

## 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-50696a55/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)
