# DeFi Protocol Dossier

> DeFi Protocol Dossier is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.04/call, status unknown (last checked 2026-12-01).

Returns a comprehensive data profile for a DeFi protocol including current TVL, 24h TVL change, and yield pool breakdown sourced from DeFiLlama.

## Facts

- Endpoint: POST https://x402.agentutility.ai/defi-protocol-dossier?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-protocol-dossier-647659a8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EJKJ3qBl3JysfTZ6B-Qnv

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 defi-protocol-dossier-647659a8 -d '<json body>'
```

Example prompt: Pull the full DeFi dossier for Aave — I want current TVL, 24h TVL change, and all available yield pools with APY and chain breakdown.

## When to prefer this

Use this endpoint when you need a combined snapshot of a DeFi protocol's TVL and yield pool data in a single call, without requiring a DeFiLlama API key or multiple API calls. Prefer it over raw DeFiLlama API calls when operating as an AI agent that pays per call in USDC and needs structured, pre-aggregated output. Ideal for research, comparison, and opportunity-scouting workflows across major DeFi protocols.

## Known failure modes

- Invalid or unrecognized protocol slug returns an error — slug must be lowercase and hyphenated as used by DeFiLlama (e.g. 'uniswap-v3' not 'UniswapV3')
- Degraded response if DeFiLlama TVL or yield pool APIs are slow or partially unavailable — 'degraded: true' returned with partial data
- Empty yield_pools if the protocol has no tracked yield pools on DeFiLlama
- Network timeout if DeFiLlama upstream takes too long — component ms fields will reflect latency

## How this service works

817 pay-per-call APIs for AI agents. Every endpoint is POST /<name> and is payable in USDC over x402 on Base and Solana — no signup, no API key, just pay-per-call. GET https://x402.agentutility.ai/ returns the same catalog as machine-readable JSON.

## Output

Returns a JSON object with the protocol name, current TVL in USD, 24h TVL percentage change, a list of yield pools (each with APY, chain, token symbol, and pool TVL), a component health array showing latency and status of underlying data sources, and a disclaimer note. May include a 'degraded' flag if some data sources were unavailable.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "protocol"
     ],
     "properties": {
      "protocol": {
       "type": "string",
       "description": "DeFiLlama protocol slug (lowercase, hyphenated), e.g. 'aave', 'lido', 'uniswap-v3'."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "note": {
       "type": "string"
      },
      "profile": {
       "type": "object",
       "properties": {
        "name": {
         "type": "string"
        },
        "tvl_summary": {
         "type": "object",
         "properties": {
          "change_24h_pct": {
           "type": "number"
          }
         }
        },
        "current_tvl_usd": {
         "type": "integer"
        }
       }
      },
      "degraded": {
       "type": "boolean"
      },
      "protocol": {
       "type": "string"
      },
      "components": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "ms": {
          "type": "integer"
         },
         "ok": {
          "type": "boolean"
         },
         "name": {
          "type": "string"
         }
        }
       }
      },
      "composed_of": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "yield_pools": {
       "type": "object",
       "properties": {
        "count": {
         "type": "integer"
        },
        "pools": {
         "type": "array",
         "items": {
          "type": "object",
          "properties": {
           "apy": {
            "type": "number"
           },
           "chain": {
            "type": "string"
           },
           "symbol": {
            "type": "string"
           },
           "tvl_usd": {
            "type": "integer"
           }
          }
         }
        }

… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "Data-only TVL and pool aggregation from DeFiLlama. Not advice.",
  "profile": {
   "name": "Aave",
   "tvl_summary": {
    "change_24h_pct": 0.42
   },
   "current_tvl_usd": 15238479862
  },
  "degraded": false,
  "protocol": "aave",
  "components": [
   {
    "ms": 800,
    "ok": true,
    "name": "defi-llama-protocol"
   },
   {
    "ms": 2400,
    "ok": true,
    "name": "defi-yield-pools"
   }
  ],
  "composed_of": [
   "defi-llama-protocol",
   "defi-yield-pools"
  ],
  "yield_pools": {
   "count": 25,
   "pools": [
    {
     "apy": 5.42,
     "chain": "Ethereum",
     "symbol": "USDC",
     "tvl_usd": 24000000
    }
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-protocol-dossier-647659a8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
