Skip to main content
Glama

What a fee wallet earned

get_earnings
Read-only

What trades paid a fee wallet as their integrator fee (the feeWallet of get_quote, or a key's fee address): trades, senders, volume and fees in USD for the last 30 days and all time, and per token sold (the fee in the token's smallest unit). Trades are counted once their transaction is final on an EVM network; fees on trades that start on Bitcoin, TON or Tron are paid separately and are not listed. No API key needed.

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": {
      "wallet": "<wallet>"
    },
    "name": "get_earnings"
  }
}

Input Schema

NameRequiredDescriptionDefault
walletYesThe fee wallet, an EVM address (0x…)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations, it discloses the counting rule (a trade counts once its transaction is final on an EVM network), a real coverage gap (fees from trades originating on Bitcoin, TON or Tron are paid separately and are not listed), and that no API key is needed. Those are the facts an agent needs to interpret latency and incomplete results, which the annotations alone cannot convey.

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?

It is a single dense sentence, but it is front-loaded with the core purpose and every clause (returned metrics, time windows, finality rule, excluded networks, no key needed) carries information. The heavy parenthetical nesting makes it slightly harder to scan than it could be.

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 no output schema, the description does the work of describing return content, units (USD, token smallest unit) and time windows, which is the right call. It leaves out response shape/pagination and whether the per-token breakdown is a nested list, minor gaps for a single-parameter read tool.

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 'wallet' parameter is already documented, but the description adds genuine meaning by defining which wallets qualify (a get_quote feeWallet or a key's fee address) and reinforcing that it is an EVM address. That goes beyond the schema's bare '0x…' note.

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?

The description names a specific resource (integrator fees paid to a fee wallet) and enumerates exactly what is returned: trades, senders, volume and fees in USD for 30 days and all time, plus per-token fees. It also anchors the resource to sibling concepts ('the feeWallet of get_quote, or a key's fee address'), so an agent can tell this is a fee-earnings report rather than a quote, trade-status, or token lookup.

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 makes clear the input must be a fee wallet and explains the two ways such an address arises (get_quote's feeWallet, or a key's fee address), which effectively tells the agent when this tool applies. It does not state exclusions or name an alternative tool for cases it doesn't cover, so it falls short of explicit when-not guidance.

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.