Skip to main content
Glama

get_chain_tvl

Read-onlyIdempotent

Total Value Locked for a whole blockchain such as Ethereum, Base or Solana. Returns USD TVL and the top protocols on that chain. Use it when the user asks about a chain's overall DeFi footprint.

[Access: pay 0.003 USDC via x402 (PAYMENT-SIGNATURE header) OR authenticate with an API key. An x402-capable client will auto-pay; API-key clients pay nothing per call.]

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": "get_chain_tvl"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesChain name or slug, e.g. ethereum or base.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, open-world and non-destructive traits, so the description's real value is the access model: 0.003 USDC via x402 PAYMENT-SIGNATURE or an API key with no per-call cost, and that x402-capable clients auto-pay. That is concrete operational context an agent cannot get from the schema or annotations, though response shape beyond 'USD TVL and top protocols' is not detailed.

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?

Purpose and payload are front-loaded in the first two sentences, then usage, then a bracketed access note. The payment paragraph is longer than the functional description, but it carries information the agent genuinely needs to avoid a failed call.

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?

For a single-parameter read tool with no output schema, the definition covers what is returned (USD TVL, top protocols), when to call it, and how billing/auth works. The only gap is the exact response structure and how many protocols are returned, which is minor here.

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?

Only one parameter and schema coverage is 100%, so the schema already documents 'chain' as a name or slug with examples. The description repeats example chains (Ethereum, Base, Solana) but adds no new constraint such as accepted slug casing, aliases, or error behavior for unknown chains.

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 resource (TVL for a whole blockchain) with concrete examples (Ethereum, Base, Solana) and even describes the payload: USD TVL plus top protocols. The phrase 'whole blockchain' implicitly separates it from the protocol-level sibling get_protocol_tvl, though it never names that alternative explicitly.

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 an explicit trigger: 'Use it when the user asks about a chain's overall DeFi footprint,' which tells the agent the intent that selects this tool. It stops short of stating when NOT to use it or naming the protocol-level alternative for narrower queries.

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.