Skip to main content
Glama

wallet_pnl

Calculate realized and unrealized PnL for a Solana wallet's token trades. Analyzes swap history to compute profit/loss per token in SOL. Costs $0.05 USDC per call.

Input Schema

NameRequiredDescriptionDefault
walletAddressYesSolana wallet address (base58)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses cost ($0.05 USDC per call), data basis (swap history), output currency (SOL), and PnL types, but omits read-only status, permissions, time-window coverage, rate limits, and failure behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three short sentences and front-loads the purpose before method and cost. Every sentence adds useful information: what it calculates, how it derives it, and the paid-call cost.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter analytical tool with no annotations and no output schema, the description gives a reasonable high-level view of the result (realized/unrealized PnL per token in SOL) and the cost. However, it leaves out important context such as the time window analyzed, how unrealized PnL is valued, and what the response shape looks like.

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 description coverage is 100%, and walletAddress is fully documented in the schema as a base58 Solana wallet address. The description implies a wallet address is needed but adds no syntax, constraints, or validation details beyond the schema, matching the baseline of 3.

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?

The description uses a specific verb ('Calculate') and resource ('realized and unrealized PnL') scoped to a Solana wallet's token trades. It clearly differs from siblings like wallet_balance or wallet_profile, but does not explicitly name alternatives, so it falls short of a 5.

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 explicit when-to-use or when-not-to-use guidance, nor routing to alternatives such as wallet_balance, transaction_parse, or token_price. Usage is only implied by the stated purpose, and the cost note does not substitute for selection 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.

Resources