# AgentDiet DEX Liquidity Lookup

> AgentDiet DEX Liquidity Lookup 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 decentralized exchange liquidity data for a specified token via the AgentDiet MCP Gateway, paid per-call in USDC over x402.

## Facts

- Endpoint: GET https://mcp-gateway.agentdiet.dev/v1/dex-liquidity?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-dex-liquidity-lookup-2cd8715e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_m4c9iHiPCTRZd3zQfiZw9

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-dex-liquidity-lookup-2cd8715e
```

Example prompt: Can you check the DEX liquidity for the USDC token right now — I want to know how much liquidity is available before I make a trade?

## When to prefer this

Choose this endpoint when you need quick, per-call DEX liquidity lookups paid micropayments in USDC via the x402 protocol, without needing a dedicated DEX API key. Ideal for AI agents that need on-demand liquidity intelligence as part of a broader DeFi workflow and want deterministic, pay-per-use access.

## Known failure modes

- Missing or invalid token parameter returns error or empty data
- Payment not included or insufficient USDC triggers x402 payment-required response
- Unknown token symbol/address returns empty liquidity data
- Gateway upstream failure returns non-ok status
- Rate limiting or quota exceeded on the broker node

## 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' on success), a 'data' object containing DEX liquidity details for the queried token, and an 'roi_proof' object including a compression_ratio_pct metric indicating data efficiency.

## 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": {
      "token": {
       "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-dex-liquidity-lookup-2cd8715e/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)
