Skip to main content
Glama

List trade history

spotgrid.list_history
Read-onlyIdempotent

Lists completed fills for one runtime, newest first, with the profit realised on each. Paginated: has_more says whether rows remain behind this page and next_cursor is present whenever they do — pass it back to continue, and keep going until has_more is false, because one page is not the whole history. realized_pnl is the gross figure the ledger booked for that fill, from the price achieved minus buy_price, the basis actually paid. fee_usdt is the fee recorded for that one fill and realized_pnl_net is the gross less that fee; the paired fill's fee is on its own row. fees_estimated is true when the fee was modelled rather than charged by an exchange, which is always the case in PAPER mode, where mode says so. page_totals sums this page and only this page. On a SELL, expected_pnl is what the rung was designed to make — the grid spacing at that fill times the quantity — so the gap between it and realized_pnl is slippage, a partial fill or a rung that moved; in PAPER the two coincide by construction.

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum trades to return (default 50).
cursorNoThe next_cursor from a previous call. Continues that listing where it stopped.
runtime_idYesA Multi Grid runtime id from spotgrid.list_runtimes. The primary grid is the one listed with primary: true.

Output Schema

NameRequiredDescriptionDefault
modeNo
countYes
tradesYes
networkNo
has_moreNo
runtime_idYes
next_cursorNo
page_totalsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so this is a lower bar, yet the description adds substantial behaviour beyond them: pagination loop semantics, the gross/net fee relationship, per-row fee attribution, page_totals being page-scoped, and PAPER-mode behaviour where fees are modelled and expected_pnl coincides with realized_pnl.

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?

Purpose and the pagination contract are front-loaded, and every sentence carries content. The back half is effectively a field glossary that partially duplicates the output schema, and the very long em-dash-chained sentences make it denser than it needs to be.

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?

For a paginated read tool with an output schema and full annotation coverage, the description is complete: an agent knows how to call it, how to exhaust the pages, and how to interpret realized_pnl, the fee fields, page_totals and the expected_pnl gap on SELLs.

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 100%, so runtime_id and cursor are already documented, and limit is left entirely to the schema. The description reinforces the cursor/has_more contract but adds no syntax, bounds or defaults beyond what the schema states, so the baseline 3 applies.

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?

Names a specific verb and resource ('Lists completed fills for one runtime') plus the ordering ('newest first') and the payload ('the profit realised on each'). An agent can tell this apart from spotgrid.list_orders (orders, not fills) without opening either 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?

Gives strong operational guidance for pagination: pass next_cursor back and keep going until has_more is false, explicitly warning that 'one page is not the whole history'. It does not, however, say when to prefer this over spotgrid.list_orders or spotgrid.list_audit, so tool-selection guidance is only implicit.

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