Skip to main content
Glama

x420_defi_tvl

Read-onlyIdempotent

DeFi TVL: Current total value locked for a DeFi protocol (by DefiLlama slug) or a chain (by name, with its rank among all tracked chains). Source: DefiLlama. Not professional, legal, insurance, engineering, medical, financial or tax advice. Price: $0.002 USDC per call (x402 on Base). This hosted tool does NOT pay and does NOT return the deliverable: it validates the input and returns payment instructions (pay_to, network, price and the x402 URL to pay at). GET the url; read PAYMENT-REQUIRED from the 402; retry with PAYMENT-SIGNATURE (x402 v2). Or run the local x420-mcp server with your own wallet key to pay automatically. Deliverable once paid: JSON: kind, tvl_usd, and for chains rank, of_chains.

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

Input Schema

NameRequiredDescriptionDefault
chainNochain name such as Base, Ethereum, Solana (optional; one of protocol or chain is required)
protocolNoDefiLlama protocol slug such as aave, uniswap, aerodrome (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, and the description adds genuinely new behavior: per-call price ($0.002 USDC via x402 on Base), the explicit warning that this hosted tool does NOT return the deliverable and only emits payment instructions, and the exact 402/PAYMENT-SIGNATURE retry flow plus the local-wallet alternative. That is critical operational context an agent cannot get from annotations.

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 is front-loaded in the first clause, before the source, legal disclaimer and payment mechanics. The disclaimer and x402 boilerplate are long but functionally necessary for this paid tool; nothing is structurally confusing, though the payment prose could be tightened.

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 zero-required-param, schema-complete, output-schema-less tool, the description covers the resolution modes, the deliverable shape (kind, tvl_usd, and rank/of_chains for chains), the payment sequence, and the local-server alternative. An agent has everything needed to call it and interpret the response.

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 coverage is 100% and both parameters already carry examples (Base/Ethereum/Solana chains; aave/uniswap/aerodrome slugs), so the description only mildly reinforces 'slug vs name' and adds that a chain result includes rank. Baseline 3 applies since the schema does the heavy lifting.

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+resource: current total value locked, resolved either by DefiLlama protocol slug or by chain name (with rank among tracked chains). The dual-mode scope and the source (DefiLlama) make it unambiguous against generic price/market siblings.

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 rather than spelled out: the schema notes 'one of protocol or chain is required', and the description explains the payment path once invoked. It never explicitly says when to choose this over a sibling such as x420_catalog or x420_crypto_market-brief, so the guidance is adequate but not routing-grade.

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