Skip to main content
Glama

defillama_chain_history

Read-only

Fetch one chain's daily TVL history as date and TVL pairs; chain names match defillama_chains and are case-insensitive. Use defillama_chain_tvl_history for the all-chain series or defillama_chains for current totals.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "chain": "<chain>"
    },
    "name": "defillama_chain_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesChain name as DefiLlama publishes it, e.g. Ethereum.

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered; the description adds that chain names are case-insensitive and must match defillama_chains, which is real behavioral context. It says nothing about rate limits, pagination of the history, or how far back data goes, which are the remaining gaps.

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?

Two sentences, both load-bearing: the first defines output and scope, the second handles disambiguation. Nothing is repeated from the title or wasted on filler.

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 one-parameter read tool with an output schema, the description covers scope, return shape, naming convention, and alternatives. Nothing an agent needs in order to call it correctly is missing.

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 single parameter is documented as a DefiLlama chain name. The description still adds meaning beyond the schema by stating the matching is case-insensitive and tied to the defillama_chains naming, which prevents a common failure mode.

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 and resource ('Fetch one chain's daily TVL history') plus the exact return shape ('date and TVL pairs'), and scopes it to a single chain. This immediately separates it from the all-chain series sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent: use defillama_chain_tvl_history for the all-chain series, or defillama_chains for current totals. The when-not condition and the named alternatives are both present.

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.