Skip to main content
Glama
Ethereum MCP
by ETHCF

smart_get_l2_tvl

Retrieves Layer 2 total value locked (TVL) by chain, automatically falling back from growthepie to DefiLlama when data is unavailable.

Instructions

Get L2 TVL with automatic fallbacks: growthepie → DefiLlama

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

Input Schema

NameRequiredDescriptionDefault
chainYesL2 chain name (e.g., "arbitrum", "optimism", "base")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does add real behavioral context by disclosing the fallback order growthepie → DefiLlama, which implies a value may come from a secondary source with different methodology. It says nothing about whether the figure is a current snapshot, its units, or what the response shape looks like, which matters for a no-annotation tool.

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?

One compact sentence, front-loaded with the outcome and followed by the fallback detail. No waste, though the arrow notation is slightly terse and the sentence is thin on operational specifics.

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 one-parameter read tool with no output schema, the description covers purpose and the fallback behavior that most affects trust in the number. The remaining gaps are the return format and whether the value is point-in-time, which are minor given the tool's simplicity.

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?

Single parameter with 100% schema description coverage — the schema already documents the chain name and gives examples like 'arbitrum', 'optimism', 'base'. The description adds no additional semantics such as valid chain naming conventions or case sensitivity. Baseline 3 is appropriate when the schema does the heavy lifting.

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 verb and resource (get L2 TVL) and adds the distinguishing trait of being a smart aggregator with a source fallback chain. It is distinguishable from get_chain_tvl and get_protocol_tvl by the L2 qualifier, though it never explicitly says how it differs from those siblings.

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. The agent must infer that this is the preferred entry point for L2 TVL versus get_chain_tvl or get_historical_tvl, which the description does nothing to disambiguate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools