Skip to main content
Glama

DeFi TVL by chain or protocol

defi_tvl
Read-only

Retrieve DeFi total value locked data to rank top chains by TVL, check a specific chain's rank, or measure a protocol's size for ecosystem comparisons.

Instructions

Total value locked (TVL) in DeFi from DefiLlama: the top chains ranked by TVL, one chain's TVL and rank, or one protocol's TVL (aave, uniswap, lido, ...). Use it to compare ecosystems or size a protocol. Costs $0.001 per call.

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
topNoWith neither protocol nor chain: how many top chains to list (default 15).
chainNoChain name, e.g. "Base", "Ethereum", "Solana".
protocolNoDefiLlama protocol slug, e.g. "aave", "uniswap", "lido".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

With readOnlyHint=true already declaring the safety profile, the description adds real value by disclosing the data provider and a per-call cost ($0.001), which matters for an agent that may loop calls. It says nothing about data freshness, caching, or failure behavior when a slug is invalid.

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?

Three short sentences: capability plus modes first, usage second, price last. The parenthetical slug examples are slightly listy but they preempt schema lookups, so nothing is wasted.

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 read-only, three-optional-parameter lookup with no output schema, the description covers what is returned (TVL, rank), the data source, and the cost — everything needed to call it correctly. Only the numeric format of returned TVL values is left unstated, which is minor.

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 baseline is 3, but the description goes further by stating the implicit selection logic — protocol alone, chain alone, or neither for the ranked list — which the schema only hints at via the "top" description. It also clarifies that a chain result includes rank, not just a number.

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 description names a specific metric (TVL) and source (DefiLlama), then enumerates the exact three output modes: top chains ranked, a single chain's TVL and rank, or a single protocol's TVL. An agent can map each mode to an input combination without opening the schema.

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?

"Use it to compare ecosystems or size a protocol" gives a concrete situation for calling the tool. It stops short of any exclusion or named alternative (e.g., for yield data), so it is clear context without routing rules.

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