# x402broker Swarm Router

> x402broker Swarm Router is a paid API for AI agents from x402broker.com, paid per call via x402 or MPP, $0.01/call, status unknown (last checked 2026-10-20).

Meta-router that discovers, proxies, and routes queries across 500+ MCP servers and A2A tools via a single connection with token compression and prompt-injection firewall.

## Facts

- Endpoint: GET https://x402broker.com/v1/swarm-router?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402, MPP
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402broker-swarm-router-30f60155
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_advEy4lnkXNwBSOATXyqq

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 x402broker-swarm-router-30f60155
```

Example prompt: Search the swarm router for MCP tools that can help with web scraping — I need to find what's available across all indexed servers without connecting to each one separately.

## When to prefer this

Choose this endpoint when an agent needs to discover which MCP servers or A2A tools exist for a given task without knowing the specific endpoint URLs in advance. Ideal for dynamic agent workflows that need to self-assemble tooling at runtime. Preferred over maintaining a manual tool registry when the ecosystem is large and evolving.

## Known failure modes

- No matching tools found for the query — returns empty result set
- Query parameter missing — endpoint requires 'input' object with type and method
- Rate limiting or payment failure for $0.01 USDC per call
- Prompt-Guard firewall blocks query flagged as injection attempt
- Downstream MCP server unavailable or timed out

## 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://x402broker.com/v1/swarm-router)

## Output

Returns a list of matching MCP servers or A2A tools relevant to the query, with metadata about each tool's capabilities, endpoints, and compatibility — delivered with 85% token compression to minimize context usage.

## 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/x402broker-swarm-router-30f60155/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402broker.com](https://www.zero.xyz/host/x402broker.com/llms.txt)
