# AgentDiet Swarm Router

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

Meta-router that discovers, proxies, and routes requests across 500+ MCP servers and A2A tools with token compression and prompt injection protection.

## Facts

- Endpoint: GET https://agentdiet.dev/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/agentdiet-swarm-router-78e3753f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4lLJHcRiLkjLGYnlwuceZ

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 agentdiet-swarm-router-78e3753f
```

Example prompt: Search your swarm router index for MCP servers and A2A tools that can help me with web scraping — I want to see what's available and get back compressed results to save tokens.

## When to prefer this

Choose this endpoint when your agent needs to discover or dynamically route to any of 500+ MCP or A2A tools without managing individual connections, when token budget is a concern (85% compression), or when you need a prompt-injection firewall between your agent and external tool outputs. Prefer over direct tool connections when building multi-tool orchestration pipelines or when tool availability is unknown at design time.

## Known failure modes

- Query string missing or malformed — returns 400 with validation error
- No matching tools found for the query — returns empty result set
- Proxied downstream tool unavailable — returns upstream error details
- Prompt injection detected by firewall — request blocked with security alert
- Rate limit or payment failure — returns 402 payment required

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

## Output

Returns a list of matching MCP servers and A2A tools from the 500+ indexed endpoints, with metadata about each tool's capabilities, along with token-compressed response payloads and firewall-cleared content from any proxied requests.

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