# AgentDiet MCP Gateway LLMs.txt Retrieval

> AgentDiet MCP Gateway LLMs.txt Retrieval 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).

Fetches the compressed llms.txt discovery index for the AgentDiet MCP Gateway, exposing a directory of 31,390+ MCP servers, x402 APIs, and A2A agents

## Facts

- Endpoint: GET https://mcp-gateway.agentdiet.dev/v1/llms-txt?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/agentdiet-mcp-gateway-llms-txt-retrieval-59f2321a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WIcZssSDEOkylO2gg6SN3

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-mcp-gateway-llms-txt-retrieval-59f2321a
```

Example prompt: Fetch the AgentDiet MCP gateway's llms.txt discovery index so I can see which MCP servers, x402 APIs, and A2A agents are available to route tasks through.

## When to prefer this

Choose this endpoint when an agent needs to discover the full catalog of MCP-compatible tools, x402 APIs, or A2A agents available through the AgentDiet broker, especially in workflows where dynamic tool selection or capability enumeration is required before task execution. Prefer this over manually curated tool lists when you need broad coverage of 30,000+ servers in a single compressed fetch.

## Known failure modes

- Payment not settled — x402 payment in USDC on Base required before content is served
- Invalid input schema — missing required 'type' or 'method' fields returns an error
- Network timeout — gateway unreachable or overloaded
- Stale index — directory may lag real-time server availability by some interval
- Malformed query parameter — non-string or missing 'url' param causes rejection

## 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 response with a 'data' object containing the llms.txt content (a compressed machine-readable directory of available MCP servers, x402 APIs, and A2A agents), a 'status' field ('ok' on success), and an 'roi_proof' object showing the compression ratio percentage (e.g. 91.4%). The document is heavily compressed relative to raw content.

## 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": {
      "url": {
       "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/agentdiet-mcp-gateway-llms-txt-retrieval-59f2321a/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)
