Skip to main content
Glama

Agent Data Tools: Prices and DeFi

DeFi TVL, protocol TVL

defi_tvl
Read-only

Total value locked of DeFi protocols from DefiLlama: name one protocol (Aave, Lido, Uniswap, a slug) for its TVL, 1h/1d/7d change, market cap to TVL and top chains; or list the top protocols by TVL, filtered by category (Lending, Dexs, Liquid Staking…) or chain, sorted by TVL or 1d/7d change. CEXs are left out unless asked for. Use to size a protocol, compare competitors or track where liquidity moves. Example: protocol=aave. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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
sortNotvl (default), change_1d or change_7d
chainNoRank by TVL on this chain: Ethereum, Base, Arbitrum, Solana…
limitNoNumber of protocols (1-50, default 20)
categoryNoOnly this category: Lending, Dexs, Liquid Staking, Bridge, CDP, Yield, Derivatives, CEX…
protocolNoOne protocol by name or slug (aave, lido, uniswap-v3); leave out for a ranking

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / limit / maximum
      Previous value: -9007199254740991New value: +50
    • changedInput schema / properties / limit / minimum
      Previous value: --9007199254740991New value: +1
  2. Added

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already say readOnly, non-destructive, open-world, non-idempotent, but the description adds genuinely new context: pricing ($0.01/call via x402 USDC or a card key, first 10 free, failed calls free) and the consequence 'each call is charged, so repeats are not free', which explains the non-idempotent hint. The CEX exclusion and 'reads or computes only' statement round out predictable behavior.

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?

Front-loaded with the resource and its two modes, then usage, then cost. Mostly dense, but two clauses restate structured data ('Reads or computes only and changes nothing' echoes readOnlyHint/destructiveHint) and the pricing sentence is long, making it slightly heavier than necessary.

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?

Five optional parameters with full schema coverage and no output schema; the description compensates by naming the metrics returned and the ranking behavior, plus cost. What is missing is minor: no pagination/capping behavior beyond the schema's limit of 50 and no detail on response shape for a single protocol.

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 already 100%, so the schema carries the per-field semantics. The description still adds value by showing the slug-form usage ('Aave, Lido, Uniswap, a slug', 'protocol=aave'), enumerating category and chain styles, and clarifying that omitting protocol yields a ranking. It also mentions outputs (1h change, mcap/TVL, top chains) that the sort parameter alone does not expose.

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

Purpose4/5

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

States a specific verb and resource ('Total value locked of DeFi protocols from DefiLlama') and explicitly splits the two modes: single-protocol lookup vs. ranked listing. It never names a sibling so the agent gets no direct contrast with tools like defi_chains, but the protocol-vs-ranking split is unambiguous.

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?

Gives concrete use cases ('size a protocol, compare competitors or track where liquidity moves') plus a worked example (protocol=aave) and an explicit scope exclusion (CEXs left out unless asked). No when-not-to-use guidance or named alternative is provided, so it stops short of a 5.

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