Skip to main content
Glama

DeFi total value locked

get_defi_tvl
Read-onlyIdempotent

Retrieve DeFi total value locked from DefiLlama to compare chain rankings or check a protocol's TVL and 1h/1d/7d change. Use it to assess liquidity and capital flow across chains and protocols.

Instructions

DeFi TVL from DefiLlama. With no arguments: the largest chains and their share. With chain (e.g. Solana, Stellar): that chain's TVL, rank and its top protocols. With protocol (e.g. aave, jupiter): its TVL, category and 1h/1d/7d change.

Input Schema

NameRequiredDescriptionDefault
chainNoChain name, e.g. Solana, Ethereum, Stellar
limitNoHow many rows to return
protocolNoProtocol name or slug, e.g. aave, uniswap

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, open-world, non-destructive behavior, so the description's job is lighter. It adds useful mode-specific output context (share, rank, top protocols, category, 1h/1d/7d change), though it omits freshness, rate limits, or error behavior.

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

Conciseness5/5

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

Three tightly written sentences, front-loaded with the tool's purpose, then the three usage modes. Every sentence earns its place.

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?

No output schema exists, so the description must carry return-shape burden; it does so at a useful summary level for each mode. It could be more complete about response structure and the `limit` control, but it is sufficient for correct invocation.

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 syntax is already covered, but the description adds semantic meaning by explaining what each argument causes the response to contain. It does not explain the `limit` parameter, keeping it below 5.

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?

Names a specific metric and source ("DeFi TVL from DefiLlama") and clearly distinguishes itself from siblings like get_price and get_derivatives by focusing on protocol/chain locked value.

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?

Explicitly maps the three argument modes to outcomes: no args for top chains and share, `chain` for chain TVL/rank/protocols, `protocol` for protocol TVL/category/change. It does not name when to use a sibling instead, so it falls just short of full when/when-not guidance.

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