Skip to main content
Glama

My closed positions

get_my_closed_positions
Read-only

๐Ÿ”ด CLOSED POSITIONS ONLY โ€” positions the user has already fully exited, with their realised profit and loss. IMPORTANT: get_my_closed_positions returns ONLY positions the user has already exited. Positions the user still holds come from get_my_balances. Never tell a user they hold nothing based on get_my_closed_positions being empty. Use this for realised PnL questions. An empty result means the user has never closed a position, and says nothing at all about what they hold today. Choosing between the two history tools: get_my_closed_positions is the POSITION-level rollup โ€” one entry per token the user entered and fully exited, with total realised PnL. get_my_closed_trades is the individual TRADES underneath, one entry per fill. Use positions for 'how did I do on X', trades for 'show me every trade'. This returns the CURRENT USER's own data, resolved from their API key. There is no way to ask about someone else's wallet with this tool.

Input Schema

NameRequiredDescriptionDefault
pageNo1-based page number.
limitNoPositions per page, 1-100. Keep it small.
networkNosolana
token_addressNoRestrict to closed positions in one token. Omit for all.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnly/non-destructive/openWorld; the description adds genuinely non-obvious behaviour โ€” data is scoped to the calling user's API key with no way to query another wallet, results are position-level rollups rather than fills, and an empty response means 'never closed a position' rather than 'holds nothing'. These are semantic traits the annotations could never 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?

Front-loaded with the core distinction and the highest-risk warning, so skimming yields the right behaviour. It does repeat the 'closed only' point twice (the IMPORTANT sentence and the empty-result sentence), costing some length for a four-parameter read tool.

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

Completeness5/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 shape needn't be described; the remaining gaps an agent could hit โ€” user scoping, empty-result interpretation, and the position-vs-trade granularity โ€” are all covered.

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 75% (page, limit, and token_address are documented in the schema), so the baseline applies. The description adds nothing about the `token_address` filter, which is the one parameter whose usefulness ('how did I do on X') is implied but never spelled out, and says nothing about paging behaviour.

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?

Opens with a specific verb+resource and scope: closed positions the user has fully exited, with realised PnL. It explicitly separates itself from `get_my_balances` (open positions) and `get_my_closed_trades` (individual fills), so an agent can pick the right tool without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives an explicit decision rule: positions for 'how did I do on X', trades for 'show me every trade'. It also states a when-not ('never tell a user they hold nothing based on an empty result') and names the alternative that answers holdings questions, which is precisely the failure mode for this tool.

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