Skip to main content
Glama
nexus-xyz

nexus-exchange-mcp

Official
by nexus-xyz

fetch_positions_history

Retrieve closed positions with realized PnL for an authenticated account, using cursor-based pagination to fetch the full history.

Instructions

Get the authenticated account's closed positions (realized PnL per position). Returns { items, next_cursor }. items is this page of results; next_cursor is an opaque token for the next page, or null when this is the last page. To read the full history, keep calling with cursor: <previous next_cursor> until next_cursor is null. limit sets the size of ONE page, not a total. Requires API credentials.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of records per page (max 200).
cursorNoOpaque pagination cursor. Omit for the first page; to get the next page, pass back the `next_cursor` from the previous response verbatim. Stop when `next_cursor` is null — that means there are no more results. Never construct or edit a cursor: the format is not part of the contract.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does reasonably well: it discloses the auth requirement ('Requires API credentials'), the exact return shape (`{ items, next_cursor }`), the pagination contract, and the fact that `limit` is per-page. It omits whether the call is read-only framed explicitly and any rate-limit or error behavior, keeping it out of the top band.

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?

Front-loaded with purpose, then return shape, then the pagination loop, then the parameter caveat. Four tight sentences, no filler, and the most error-prone point (`limit` is per-page) is called out explicitly.

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?

There is no output schema, so the description correctly compensates by documenting the response envelope and cursor semantics, and it fully covers the 2-parameter surface. The remaining gap is sibling disambiguation against `get_closed_positions`/`fetch_positions`, which an agent selecting a tool would still need.

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 already 100%, so the baseline is 3, but the description adds real meaning: it clarifies that `limit` sizes ONE page and is not a total, and that `cursor` must be the previous `next_cursor` verbatim. This reinforces and contextualizes the schema rather than merely repeating it.

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?

States a concrete verb and resource ('Get the authenticated account's closed positions') and clarifies the payload is realized PnL per position. However, the sibling list contains both `get_closed_positions` and `fetch_positions`, which appear near-duplicate, and the description offers no basis for choosing among them.

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

Usage Guidelines3/5

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

The description gives strong usage mechanics for pagination — keep passing the previous `next_cursor` and stop when it is null — but never says when to use this tool versus `get_closed_positions`/`fetch_positions`, nor any when-not condition. Usage is implied by the pagination walkthrough rather than by selection guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools