Skip to main content
Glama

Defi Fees

defi_fees
Read-only

A DeFi protocol's fees and revenue for 24 hours, 7 days and 30 days, with the change over the last day against the day before, and the chains it runs on. Attribution: Data: DefiLlama. Information only, not financial advice. Price: $0.002 in USDC per successful call, paid with x402 (Base, Solana or Arc); failed calls are not charged.

Input Schema

NameRequiredDescriptionDefault
protocolYesDefiLlama protocol slug, e.g. aave or uniswap-v3

Output Schema

NameRequiredDescriptionDefault
feesNo
chainsNo
sourceNo
revenueNo
protocolNo
checkedAtNo
disclaimerNo
attributionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description does add genuinely useful non-annotation context: a $0.002 per-successful-call charge via x402 on Base/Solana/Arc, with failed calls free, plus a DefiLlama attribution and a not-financial-advice disclaimer. That is real added value, though nothing is said about rate limits, quotas, or freshness/latency of the data.

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?

The return contents and time windows are front-loaded, and the pricing/attribution boilerplate is compact and separated from the functional sentence. Slightly dense in the first sentence, but no wasted prose.

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?

An output schema exists, so return shapes need not be restated, yet the description still previews the metric set helpfully. Combined with the disclosed paid-call model and attribution, an agent has what it needs to call this correctly; only cross-tool routing guidance is absent.

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?

Only one parameter (protocol) and the schema description coverage is 100%, including the slug example 'aave' or 'uniswap-v3'. The description adds no syntax or format detail beyond the schema, so the baseline 3 for high schema coverage applies.

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?

Names a specific resource (a DeFi protocol's fees and revenue) and enumerates the exact metrics returned: 24h/7d/30d windows, day-over-day change, and supported chains. That is enough to separate it from defi_tvl or defi_dex_volume, though it never names those nearby siblings explicitly, so an agent must still infer the boundary.

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 statement of when to pick this over the numerous adjacent DeFi tools (defi_tvl, defi_dex_volume, defi_chains, defi_yields). The only usage-relevant content is the payment model, which tells the agent it costs money but not when spending it is appropriate.

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