Skip to main content
Glama

Defi Tvl

defi_tvl
Read-only

Total value locked in DeFi from DefiLlama. For a protocol (its slug, e.g. aave-v3) the current TVL; for a chain (Base, Ethereum...) its TVL with 1-day and 7-day changes. A protocol's history is too large to read here, so it has no change figures. Attribution: Data: DefiLlama. Information only, not financial advice. Price: $0.002 in USDC per successful call, paid with x402 (Base, Solana or Arc); failed calls are not charged.

Input Schema

NameRequiredDescriptionDefault
chainNoOr a chain name, e.g. Base
protocolNoDefiLlama protocol slug, e.g. aave-v3

Output Schema

NameRequiredDescriptionDefault
noteNo
slugNo
typeNo
sourceNo
tvlUsdNo
checkedAtNo
disclaimerNo
attributionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint. The description adds pricing ($0.002 USDC via x402 on specific chains), that failed calls are free, attribution, and that protocol results omit change figures. That's real behavioral context beyond annotations, though it omits rate limits and the fact that no parameters returns something ambiguous.

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

Conciseness3/5

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

Front-loads the core purpose well, but the pricing, attribution, and disclaimer clauses add bulk that pushes the important operational constraint (no history) into a buried middle sentence.

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?

Covers the two input modes, the protocol-vs-chain output difference, cost mechanics, and attribution. With an output schema present and 100% schema coverage, remaining gaps are minor; ambiguity about zero-parameter calls is the main omission.

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% and the schema already documents both params, but the description usefully clarifies the protocol path yields only current TVL while the chain path yields 1d/7d changes, adding meaning about output shape.

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?

States a specific verb+resource: returns total value locked in DeFi from DefiLlama, and distinguishes inputs (protocol slug vs chain name). Clearly separable from siblings like defi_chains, defi_dex_volume, defi_fees, defi_stablecoins.

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?

Explains what each parameter class fetches and explicitly notes that a protocol's history is too large to read here, which is a useful boundary. However, it doesn't point to which sibling to use for historical TVL or chain lists.

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