Skip to main content
Glama

DeFiLlama TVL & Stablecoins MCP

Get DeFi protocol TVL and chain breakdown

get_protocol_tvl
Read-onlyIdempotent

Fetch live Total Value Locked, per-chain TVL breakdown, market cap, and 7-day TVL history for a DeFiLlama protocol slug.

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": {
      "protocol": "<protocol>"
    },
    "name": "get_protocol_tvl"
  }
}

Input Schema

NameRequiredDescriptionDefault
protocolYesDeFiLlama protocol slug (e.g. "aave", "lido", "uniswap", "makerdao").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare the tool as read-only, idempotent, non-destructive, and open-world. The description adds useful context by specifying that data is 'live' and includes per-chain TVL, market cap, and 7-day history, but it does not cover error behavior for invalid slugs, rate limits, or data freshness beyond the word 'live'.

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?

The description is a single, front-loaded sentence with no filler. Every phrase contributes either the action, the returned data fields, or the scope of the input.

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?

This is a simple one-parameter read-only tool with full annotation coverage and a fully described input schema. Because there is no output schema, the description usefully lists the returned data categories (TVL, per-chain breakdown, market cap, 7-day history), though it could mention units or failure behavior for an invalid slug.

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 description coverage is 100%, and the schema already documents the required 'protocol' slug with concrete examples such as 'aave' and 'lido'. The description reinforces that this is a DeFiLlama protocol slug but adds no further syntax or format detail beyond the schema, so the baseline 3 is appropriate.

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 uses a specific verb and resource: it fetches live TVL, per-chain breakdown, market cap, and 7-day history for a DeFiLlama protocol slug. This clearly distinguishes it from sibling tools that cover chain rankings, stablecoins, or top protocols, though it does not explicitly name those alternatives.

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

Usage Guidelines3/5

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

Usage is implied by the phrase 'for a DeFiLlama protocol slug', which signals this is for protocol-specific TVL rather than chain-wide rankings. However, there is no explicit when-to-use guidance, no exclusions, and no naming of sibling alternatives.

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.