Skip to main content
Glama

defi_tvl

Retrieve the current total value locked (TVL) in USD for any DeFi protocol by DefiLlama slug. Use for protocol health checks, DeFi rankings, and risk screening.

Instructions

[costs $0.005 USDC per call] Get the current total value locked (TVL) in USD for a DeFi protocol. DeFi TVL API: current total value locked in USD for any DeFi protocol by DefiLlama slug ('aave', 'uniswap', 'lido' — full list at defillama.com/protocols). Aggregates across every chain the protocol deploys on. Use for protocol health checks, DeFi rankings, risk screening, and market research by autonomous agents. Slugs are lowercase. Cached up to 5 minutes; freshness reported in meta.fetchedAt.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
protocolYesDefiLlama protocol slug, lowercase (e.g. 'aave', 'uniswap', 'lido').
Behavior5/5

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

Discloses cost per call, caching behavior (up to 5 minutes), data freshness indicator (meta.fetchedAt), and that it aggregates across chains. No annotations, so description fully carries burden.

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?

Concise at ~100 words, front-loaded with purpose. Includes key details (cost, caching) without excessive verbosity.

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?

Simple tool with one parameter. Describes return value (TVL in USD) and freshness indicator. No output schema, but explanation suffices for agent 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 100% with one parameter. Description adds value by specifying slug source (defillama.com/protocols), lowercase requirement, and examples beyond schema description.

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?

Clearly states verb 'Get' and resource 'total value locked (TVL) in USD for a DeFi protocol'. Specific about using DefiLlama slug. Distinguishes from siblings like crypto_price or dex_pool.

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?

Provides explicit use cases (protocol health checks, DeFi rankings, risk screening, market research). Does not explicitly exclude alternatives but context signals indicate distinct purpose.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Marysbrain/x402-gateway-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server