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

Searches an index of 500+ MCP servers and A2A tools by capability query, returning compressed, firewall-filtered tool metadata for agent routing

## Facts

- Endpoint: GET https://json-repair.agentdiet.dev/v1/tool-search?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Provider: json-repair.agentdiet.dev
- Website: https://json-repair.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/json-repair-agentdiet-dev-universal-a2a-mcp-tool-discovery-safe-proxy-b793dcf9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_At5qwBWXXtFvqFcwm1c12

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 json-repair-agentdiet-dev-universal-a2a-mcp-tool-discovery-safe-proxy-b793dcf9
```

Example prompt: Search the agentdiet tool index for MCP servers or A2A tools that can handle SEC filings — I want to see what's available with compressed metadata so I can add the right tool to my agent pipeline.

## When to prefer this

Choose this endpoint when an AI agent needs to dynamically discover new tools or MCP servers at runtime without pre-configuring each integration individually — especially useful for swarm routing, capability gap detection, or verifying whether a known endpoint is safe and indexed. Prefer it over manual tool registries when token budget is tight (85% compression) or when you need Prompt-Guard firewall filtering before proxying tool calls.

## Known failure modes

- Missing or empty 'query' parameter returns a validation error
- Query returns zero matches if the capability is not indexed
- Rate limiting or payment failure (x402) if per-call quota is exceeded
- Malformed endpoint URL when used in verification mode may return an invalid-input 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://json-repair.agentdiet.dev/v1/tool-search)

## Output

Returns a structured list of matching MCP servers or A2A tools with compressed capability descriptions (85% token reduction), safety/firewall status from the Prompt-Guard layer, and routing metadata for swarm integration.

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