Skip to main content
Glama

defillama_tvl

Read-only

Fetch the current USD TVL value for one DefiLlama protocol slug such as uniswap and return it as a bare number rather than an object. Use defillama_protocol for the complete record or defillama_chain_history for a chain TVL series.

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": {
      "slug": "<slug>"
    },
    "name": "defillama_tvl"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesDefiLlama protocol slug, e.g. uniswap.

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.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and idempotentHint=false, so the safety profile is covered. The description adds genuinely non-redundant behavior: the result is a bare number, not an object, which affects how the agent must handle the response even though an output schema exists.

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, zero filler. The core action and scope come first, and the disambiguation sentence follows immediately, so nothing is wasted.

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?

This is a simple one-parameter read tool with full schema coverage and an output schema, and the description still supplies the key non-obvious facts: current value only, bare-number return, and which sibling to use for fuller records. Nothing an agent needs to select or call it correctly is missing.

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?

There is a single required parameter and schema description coverage is 100%, with the schema already supplying the 'protocol slug, e.g. uniswap' explanation. The description's 'one DefiLlama protocol slug such as uniswap' repeats that guidance without adding new meaning, so the baseline of 3 applies.

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 the current USD TVL value for one DefiLlama protocol slug'), scopes it to a single protocol and to current (not historical) data, and names the sibling tools it is not. An agent can distinguish it from defillama_protocol and the chain-history tools without opening a schema.

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?

Explicitly routes the agent: defillama_protocol for the complete record, defillama_chain_history for a chain TVL series. That covers the main alternatives with their selecting conditions, but there is no explicit statement of when not to use this tool (e.g., historical protocol TVL), so it falls just short of a full 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.