# X402-BROKER Agent Tool Marketplace

> X402-BROKER Agent Tool Marketplace is a paid API for AI agents from mcp-gateway.agentdiet.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-22).

Searches and routes requests across 31,390+ MCP servers, x402 APIs, and A2A agents, returning ranked tool results with USDC-settled execution via x402 protocol on Base.

## Facts

- Endpoint: GET https://mcp-gateway.agentdiet.dev/v1/agent-tool-marketplace?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-broker-agent-tool-marketplace-f20ba4ef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0uDn5WlyjlXyQLFSC4qY-

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 x402-broker-agent-tool-marketplace-f20ba4ef
```

Example prompt: Search the agent tool marketplace for MCP servers or x402 APIs that can handle PDF parsing, and show me the best available options — I need something my agent can call directly.

## When to prefer this

Choose this endpoint when an AI agent needs to discover, search, or route to one of 31,390+ MCP servers, x402 APIs, or A2A agents from a single brokered interface. Prefer it over direct MCP registries or manual API directories when you want deterministic routing with USDC micropayment settlement on Base, especially in agentic pipelines that require pay-per-call access without long-term API key management.

## Known failure modes

- Missing or malformed 'input' object returns a 400-style error
- Query string absent returns empty or generic results
- Payment not settled in USDC on Base returns 402 Payment Required
- x402 protocol handshake failure prevents access
- Overly broad or ambiguous queries may return low-relevance tool listings
- Downstream MCP server unavailability may reduce result completeness

## How this service works

Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://mcp-gateway.agentdiet.dev settling in USDC on Base.

## Output

Returns a JSON object with a 'status' field ('ok'), a 'data' object containing matched tool/agent/MCP-server listings relevant to the query, and an 'roi_proof' object with a compression_ratio_pct (e.g. 91.4) indicating how much the response was distilled from the full marketplace index.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "query": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "status": "ok",
  "roi_proof": {
   "compression_ratio_pct": 91.4
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-broker-agent-tool-marketplace-f20ba4ef/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp-gateway.agentdiet.dev](https://www.zero.xyz/host/mcp-gateway.agentdiet.dev/llms.txt)
