Skip to main content
Glama

Agent Data Tools: Prices and DeFi

Chain TVL ranking, blockchain TVL

defi_chains
Read-only

Total value locked in DeFi on every blockchain from DefiLlama: up to 100 chains ranked by TVL with their share of the total, native token and chain id, or one chain by name. Use to compare L1s and L2s, size an ecosystem or pick where to deploy. Example: chain=Base. 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_chains"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoOne chain by name (Base, Solana); leave out for the ranking
limitNoNumber of chains (1-100, default 25)

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so 'reads or computes only and changes nothing' largely restates them. The genuinely additive content is cost behavior: $0.01/call, x402 USDC or card key, first 10 free, failed calls free and repeats not free. Nothing is said about rate limits, caching or pagination for the ranked list, which is a gap for an open-world billed call.

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?

The content is front-loaded — what it is and what it returns come before cost details — and each sentence carries information. The pricing clause is dense but relevant for a paid call; slight trimming would improve readability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-optional-parameter, read-only ranking tool with no output schema, the description is sufficient: it discloses the source, the shape of the result (rank, share, native token, chain id), the single-chain variant, and the billing model. No output schema exists, so return values had to be described and they were.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so both parameters are already documented (chain-name lookup, limit 1-100 default 25). The description restates the 100-chain cap and supplies a useful 'chain=Base' example, but adds no format rules or failure behavior beyond the schema, so the baseline 3 applies.

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?

The description names a specific resource and verb: TVL across every blockchain from DefiLlama, ranked, with share of total, native token and chain id — plus a single-chain lookup mode. It is clear what the tool returns, though it does not explicitly route against the sibling 'defi_tvl' (protocol-level TVL), so an agent must infer the chain-vs-protocol split.

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?

It gives concrete use cases ('compare L1s and L2s, size an ecosystem or pick where to deploy') and a worked example (chain=Base). There is no explicit when-not-to-use or named alternative, but the context for calling it is unambiguous.

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