Skip to main content
Glama
Tanod MCP Server

Tanod MCP Server

Official

get_protocol_fees

Read-onlyIdempotent

Retrieve a protocol's fees and revenue in USD across 24h, 7d, 30d, 1y, and all-time periods, including changes and revenue-to-fees ratio, from cached DefiLlama data.

Instructions

chainpeek: Get protocol fees and revenue. For TVL use get_protocol_tvl. Returns a protocol's fees and revenue in USD over 24 hours, 7 days, 30 days, 1 year and all time, the change, the revenue-to-fees ratio and DefiLlama's definitions, from Tanod's cache of DefiLlama data. Cached DefiLlama data (refreshed every few hours), never live; as_of shows its age; revenue is DefiLlama's definition; an unknown protocol is a 422 with suggestions and a missing or over-2-day-old cache a 503 (neither charged). Informational only. Typically under 1 s (a local cache read). Price: USD 0.002. Free: 10 chain reads per IP per UTC day. Docs: https://tanod.dev/learn/defi-data-api.html

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

Input Schema

NameRequiredDescriptionDefault
protocolYesProtocol (or chain) name or slug, e.g. aave, uniswap, lido, ethereum (a parent such as aave sums its versions). An unknown name is a 422 with suggestions.

Output Schema

NameRequiredDescriptionDefault
noteNo
as_ofNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
staleNo
sourceNo
protocolNo
other_matchesNo
cache_age_hoursNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.4

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/openWorld and non-destructive, so the description adds real value beyond them: data is cached and refreshed every few hours, never live, `as_of` exposes staleness, revenue follows DefiLlama's definition, and both error paths (422 with suggestions for unknown protocol, 503 for missing or >2-day-old cache) are uncharged. Latency (<1s local cache read) and price are also disclosed.

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 and the TVL alternative are front-loaded, and most clauses carry unique information (cache freshness, error semantics, price). The semicolon-chained density and the trailing docs URL/pricing block make it heavier than necessary, but nothing is truly redundant.

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 single-parameter read tool with full annotations and an output schema, the definition covers freshness, definitional caveats, failure modes, and cost. Nothing an agent needs in order to call it correctly or interpret a 422/503 is missing.

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 the single parameter already documents slug format, the parent-sums-versions behavior, and the 422-on-unknown case. The description repeats the 422 behavior but adds no new constraint or syntax beyond the schema, so the baseline 3 applies.

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 and resource ('Get protocol fees and revenue') and immediately scopes it against the sibling 'For TVL use get_protocol_tvl'. The return payload (fees/revenue in USD across 24h/7d/30d/1y/all-time plus ratio) is named, so an agent can distinguish this from get_protocol_tvl without opening either schema.

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

Usage Guidelines5/5

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

Explicitly names the alternative tool and the condition that selects it ('For TVL use get_protocol_tvl'), and labels the tool 'Informational only', which rules out action-taking interpretations. The pricing/free-tier line also tells the agent when a call is cheap versus metered.

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