Skip to main content
Glama

defi tvl

defi_tvl
Read-only

Total value locked for a DeFi protocol (aave, uniswap, aerodrome, lido...) and/or a chain (Base, Ethereum, Solana...), with the chain's TVL rank. Costs $0.002 USDC per call (x402).

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_tvl"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoe.g. base
protocolNoDefiLlama slug, e.g. aave

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so safety is covered. The description goes beyond them by disclosing the per-call cost and payment mechanism ($0.002 USDC via x402) plus the fact that a chain rank is returned, which is genuinely non-obvious operational context. It stops short of stating behavior for a zero-argument 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?

Two tight sentences with the core capability front-loaded and the cost disclosure trailing. Nothing is wasted, though cramming resource, rank, and pricing into one sentence slightly muddies the lead.

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?

With no output schema, the description carries the return burden and does mention TVL plus chain rank, which is adequate for a two-optional-parameter lookup. It omits what an all-empty call returns and whether both inputs can be combined, a minor gap for this complexity level.

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?

With 100% schema description coverage, the schema already documents both parameters, including the DefiLlama slug format. The description restates example values rather than adding constraints (e.g. slug casing, that both are optional and how they combine), 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?

It states a concrete resource (total value locked), enumerates examples for both entity types (aave, uniswap / Base, Ethereum), and notes the returned chain rank. However, it never distinguishes itself from the many neighboring DeFi tools (defi_protocols, defi_chains, defi_yields), leaving an agent to infer why TVL specifically belongs here rather than there.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no named alternative; 'and/or' merely hints that either input is acceptable. An agent gets no routing signal versus defi_chains or defi_protocols, which likely cover overlapping territory.

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