Skip to main content
Glama

Calculating token performance

wallet_pnl_for_token

Get PnL stats for a specific token traded by the input address during a specific date range. Use this tool for analysing the performance of the wallet for the specific token over a time period.

Chain: pass 'hyperliquid' for a perp coin — there tokenAddress is the perp SYMBOL (e.g. 'BTC', 'HYPE', 'xyz:CL'), not a contract address. Every other chain expects a token contract address.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
requestYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral burden. 'Get PnL stats' and 'analysing' signal a read-only analytics operation, and the chain rule discloses a non-obvious input behavior. However, it does not cover permissions, rate limits, data freshness, or what happens for unsupported chains; the output schema covers return shape, so this is adequate but not rich.

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 first sentence states the action, the second rephrases it as a use case, and the third gives essential chain/tokenAddress guidance. One sentence is somewhat redundant ('Get...' vs 'Use this tool for analysing...'), but the length is appropriate and the critical chain detail is front-loaded.

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?

Together with the nested schema definitions for dateRange and showRealized, the description covers the main invocation decisions: what wallet/token/date range to supply and how the chain field changes tokenAddress interpretation. The output schema removes the need to describe return values. Missing explicit alternative routing to wallet_pnl_summary is the main 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?

The description front-loads the trickiest parameter behavior: on hyperliquid, tokenAddress is the perp SYMBOL ('BTC', 'HYPE', 'xyz:CL'), while every other chain expects a contract address. It also contextualizes walletAddress/tokenAddress/dateRange through 'traded by the input address during a specific date range.' Although nested schema properties already document this, the description makes the key distinction prominent and compensates for the sparse top-level request schema.

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 opens with a specific verb and resource: 'Get PnL stats for a specific token traded by the input address during a specific date range.' 'Specific token' and 'input address' clearly separate it from the sibling wallet_pnl_summary and from token-wide or address-wide tools, so an agent can identify the right operation without opening the 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 this tool for analysing the performance of the wallet for the specific token over a time period' gives a direct use case, and the chain note gives concrete invocation guidance for the hyperliquid exception. It stops short of naming sibling alternatives or saying when not to use it, so it misses the explicit exclusion that would earn a 5.

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.

TDQS

A3.8/5.0
Disambiguation5/5

Each tool has a clearly defined purpose, and overlapping tools (e.g., token_flows vs token_recent_flows_summary, nansen_score_top_tokens vs token_discovery_screener) include explicit guidance on when to use them. Even with similar names like prediction_market_trades and prediction_market_address_trades, the descriptions and parameters make the distinction unambiguous.

Naming Consistency4/5

Most tools follow a domain_prefix_noun pattern (address_, token_, prediction_market_), making them predictable within families. However, outliers like general_search, growth_chain_rank, hyperliquid_leaderboard, and transaction_lookup break the pattern, and some names are long or inconsistently formatted (e.g., smart_traders_and_funds_perp_trades vs smart_traders_and_funds_token_balances).

Tool Count3/5

With 38 tools, the server is far above the typical 3-15 range, making it heavy for agents to navigate. However, Nansen is a broad analytics platform covering wallets, tokens, prediction markets, and smart money activity, so the high count is justifiable as each tool serves a distinct function.

Completeness5/5

The tool set provides comprehensive coverage across token analysis (ohlcv, trading, holders, flows, PnL, technicals), wallet analysis (portfolio, transactions, counterparties), prediction markets (lookup, orderbook, trades, PnL), and discovery. The only obvious omission is NFT support, but it is explicitly documented as out of scope, so no critical dead ends exist.

Resources