defi_tvl
Fetch DeFi protocol TVL, rankings, chain TVL shares, and DEX trading volumes from DefiLlama for analysis or dashboards.
Instructions
DeFi TVL and DEX Volume — DeFi data from DefiLlama in four modes. protocol: TVL, 1d/7d change, category, market cap and chain breakdown of a protocol (slug or name, e.g. aave, uniswap, lido). top: largest protocols by TVL, optional category (e.g. Lending, Dexs, Liquid Staking) and chain filter. chains: chains ranked by TVL with share. dex_volume: 24h/7d/30d DEX volume and top DEXes, optionally for one chain. Params: mode (protocol, top, chains, dex_volume; default top, or protocol if protocol is given), protocol, category, chain, limit (1 to 50, default 10). Cost: $0.002 USDC per call. Latency p99: 4000ms.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "defi_tvl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| chain | No | Chain name, e.g. Base, Ethereum (modes top, dex_volume) | |
| limit | No | ||
| category | No | DefiLlama category (mode top) | |
| protocol | No | Protocol slug or name (mode protocol) |