Skip to main content
Glama

defillama_fees

Read-only

List protocols with fee and revenue data and return rows with per-metric totals for one data_type such as dailyRevenue, optionally scoped to one chain. Valid data_type values are dailyFees, dailyRevenue, dailyHoldersRevenue, dailyProtocolRevenue, dailyUserFees, dailySupplySideRevenue, dailyBribesRevenue, dailyTokenTaxes, dailyAppFees, and dailyAppRevenue. Use defillama_fee_summary for one protocol.

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

Input Schema

NameRequiredDescriptionDefault
chainNoOptional chain name to scope the overview, e.g. Ethereum.
data_typeNoFee metric: dailyFees, dailyRevenue, dailyHoldersRevenue, dailyProtocolRevenue, dailyUserFees, dailySupplySideRevenue, dailyBribesRevenue, dailyTokenTaxes, dailyAppFees, or dailyAppRevenue.

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, and idempotentHint=false, so the safety profile is covered structurally. The description adds that results are per-metric totals scoped to a single data_type and one optional chain, but does not explain the non-idempotent hint or any pagination/limit behavior on the open-world fetch.

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?

Front-loaded with the core action and result shape, then the constraint enumeration, then the sibling routing. The ten-value data_type list consumes most of the text and is redundant with the schema, costing some concision but nothing is genuinely misleading or padded.

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 an output schema present and full parameter coverage, the description need not explain return values, and it correctly does not. It covers scope, alternatives, and valid metric values, leaving only the default chain behavior as an unstated gap for this two-parameter read tool.

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 description's enumeration of the ten data_type values duplicates the enum-like text already in the schema rather than adding meaning. The chain paragraph only restates the schema's "optional chain name to scope the overview" without clarifying behavior when omitted (e.g., all chains aggregated).

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?

Uses a specific verb and resource ("List protocols with fee and revenue data") and states the output shape ("rows with per-metric totals for one data_type"). It also names a sibling it is not (defillama_fee_summary), so an agent can distinguish the two 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 Guidelines4/5

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

"Use defillama_fee_summary for one protocol" gives a clear routing rule to the closest alternative. It also implies the overview-vs-single-protocol split and the optional chain scoping, but it does not say when to omit data_type or what the default behavior is.

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.