Skip to main content
Glama

F1ow Crypto Market Data & Research MCP

On-Chain Metrics

onchain_metrics
Read-only

On-chain TVL and network fees/revenue (24h/7d/30d) for one chain. Use a chain's own token symbol (e.g. 'ETH', 'SOL', 'BNB') — returns a plain 'not a tracked chain' message for tokens that aren't L1/L2s. Does not cover gas price (gwei).

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": {
      "symbol": "<symbol>"
    },
    "name": "onchain_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYesChain token symbol, e.g. 'ETH' or 'SOL'

Output Schema

NameRequiredDescriptionDefault
chainNoDeFiLlama chain name
tvlUsdNoTotal value locked, USD
trackedYesFalse when the symbol is not a chain DeFiLlama tracks (most tokens are not); the fields below are then absent
fees7dUsdNoNetwork fees, last 7 days, USD
fees24hUsdNoNetwork fees, last 24h, USD
fees30dUsdNoNetwork fees, last 30 days, USD
fees24hChangePctNo24h fees change vs the prior day, percent

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "chain": {
      +      "description": "DeFiLlama chain name",
      +      "type": "string"
      +    },
      +    "fees24hChangePct": {
      +      "description": "24h fees change vs the prior day, percent",
      +      "type": "number"
      +    },
      +    "fees24hUsd": {
      +      "description": "Network fees, last 24h, USD",
      +      "type": "number"
      +    },
      +    "fees30dUsd": {
      +      "description": "Network fees, last 30 days, USD",
      +      "type": "number"
      +    },
      +    "fees7dUsd": {
      +      "description": "Network fees, last 7 days, USD",
      +      "type": "number"
      +    },
      +    "tracked": {
      +      "description": "False when the symbol is not a chain DeFiLlama tracks (most tokens are not); the fields below are then absent",
      +      "type": "boolean"
      +    },
      +    "tvlUsd": {
      +      "description": "Total value locked, USD",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "tracked"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description carries most of the burden. It discloses the failure mode ('plain not a tracked chain message'), the supported metric families with their lookback windows, and a coverage boundary (no gwei). With an output schema present, it doesn't need to describe return values, so this is close to sufficient.

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?

Three short sentences: what it returns, how to format the input, and what it does not cover. The scope, the input convention, and the exclusion are all front-loaded with zero filler.

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-only tool with an output schema and full schema coverage, this covers what matters: metric scope, timeframes, valid symbol semantics, failure behavior, and an explicit exclusion. A pointer to the correct alternative for gas price or non-chain tokens is the only meaningful gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: the symbol must be the chain's own token, not an arbitrary token that happens to trade on that chain — the exact mistake an agent would make. That's a semantic constraint the schema's 'e.g. ETH or SOL' does not convey.

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 first clause names specific metrics (TVL, network fees/revenue) with explicit timeframes (24h/7d/30d) and scope ('for one chain'), which is far more precise than the title. It also carves out an exclusion ('does not cover gas price'), helping separate it from broader network-data tools. It stops short of naming a sibling, so a 5 isn't warranted.

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?

It states the input convention explicitly — use the chain's own token symbol — and warns that non-L1/L2 tokens return a 'not a tracked chain' message, which tells the agent when this tool will fail. It also excludes gas price queries. It stops short of pointing to the tool an agent should use for gas price or for non-chain tokens.

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