Skip to main content
Glama

defi_tvl

DeFi TVL by protocol and chain: total DeFi TVL and the 15 largest chains with 1/7/30-day change, and protocols ranked by TVL or 1/7-day change, each with category, market cap to TVL, largest chains with their share, and flags such as tvl-down-20pct-7d or one-chain-90pct. Look up a protocol by name or slug, or filter by chain (ranked by its TVL there) and category. 1,200+ protocols with $1M+ TVL from DefiLlama, refreshed every 2 hours. Costs $0.005 USDC on Base via x402.

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

NameRequiredDescriptionDefault
sortNoRanking (default tvl)
chainNoChain name, e.g. Ethereum, Base, Solana, Arbitrum
limitNoProtocols to return, 1-50 (default 20)
min_tvlNoMinimum TVL in USD (default 1000000)
categoryNoDefiLlama category, e.g. Lending, Dexs, Liquid Staking, Bridge
protocolNoProtocol name or DefiLlama slug, e.g. Aave, lido, uniswap-v3
include_cexNoInclude centralized exchanges (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does well: it discloses the upstream source (DefiLlama), coverage threshold (1,200+ protocols with $1M+ TVL), refresh cadence (every 2 hours), and the paid access model ($0.005 USDC on Base via x402). It does not discuss rate limits, error behavior, or whether the payment is per-call or per-session, which keeps it short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The output shape is front-loaded in the first sentence, followed by lookup modes, then provenance and pricing. It is dense but nearly every clause carries information; the pricing sentence is the only part that could arguably be trimmed for a purely functional read.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter, no-annotation, no-output-schema tool, the description covers return contents, data source, freshness, and cost well enough to call it correctly. Gaps remain around default behavior with zero parameters and how limit applies to the chain list versus the protocol list.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: it explains that ranking can be by TVL or 1/7-day change (mapping to the sort enum), that a chain filter re-ranks protocols by their TVL on that chain, and it names the derived fields (market cap to TVL, chain share, flags like tvl-down-20pct-7d). It does not clarify limit/min_tvl interaction or the include_cex toggle.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening clause names a specific resource and scope ('DeFi TVL by protocol and chain') and then enumerates exactly what is returned: aggregate TVL, the 15 largest chains with 1/7/30-day change, and protocols ranked by TVL or change. This is clearly distinguishable from the sibling defi_yields, which covers yield opportunities rather than TVL rankings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives concrete selection guidance for the two main modes: 'Look up a protocol by name or slug, or filter by chain (ranked by its TVL there) and category.' That tells an agent which parameter drives which view, but it never states when to prefer this over defi_yields or what happens when no filters are supplied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources