Skip to main content
Glama
Pit Officer

Pit Officer

Official

list_trades

Retrieve a paginated, read-only page of trades with filters for account, base/quote assets, side, source, time, quantity, price, lock price, and venue, plus sorting.

Instructions

Return one page of trades; each row is the trade row of the REST trade list. Read-only - no secrets, no order-flow control. Filters: account, baseAsset and quoteAsset (text match), id (exact trade id), side (buy | sell), source, at (time range), quantity, price and lockPrice (decimal range); venue is the trading-connection filter: mode any (through at least one trading connection), none (through no connection) or connection (through the connection whose id is in connection). Sort columns: account, at, baseAsset, lockPrice, price, quantity, quoteAsset, side, source. Paging: limit rows per page (default 50, capped at 500) and a 1-based page; total counts the matching rows before paging. An invalid value fails with a validation error.

Input Schema

NameRequiredDescriptionDefault
atNoTrade time range
idNoExact trade id
pageNo1-based page number, default 1
sideNoTrade side: buy | sell
sortNoSort order
limitNoRows per page, default 50, capped at 500
priceNoFill price range
venueNoTrading-connection filter on the venue link of the trade's order
sourceNoExact source channel: panel | api | mcp | system
accountNoAccount code match
quantityNoFill quantity range
baseAssetNoBase asset code match
lockPriceNoPre-trade lock price range
quoteAssetNoQuote asset code match

Output Schema

NameRequiredDescriptionDefault
totalYes
tradesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the burden well by declaring the tool read-only, stating that it exposes no secrets and has no order-flow control, and noting that invalid values fail with a validation error. It also describes paging defaults and the total count semantics, though it does not discuss authentication or rate limits.

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 dense but appropriate for a 14-parameter list tool: it front-loads the return shape and read-only nature, then covers filters, sorting, and paging without obvious filler. Every sentence conveys operational information needed to invoke the tool correctly.

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?

Given the absence of annotations, 14 parameters, and the existence of an output schema, the description is complete enough for an agent to call the tool confidently. It covers return paging, total counts before paging, filter semantics, sort columns, default and maximum limits, and validation failure behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema coverage is already 100%, the description adds meaning beyond the schema by grouping filters and clarifying that account/assets use text match while id is exact, side is buy|sell, and price/quantity/lockPrice are decimal ranges. It also explains the venue filter modes and enumerates the valid sort columns, which the schema explicitly defers to the description.

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 states a specific verb and resource: it returns one page of trades, with each row corresponding to the REST trade list row. It also distinguishes the operation as read-only and explicitly excludes order-flow control, which lets an agent identify it as a query tool rather than an order-submission sibling.

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 implies usage through its filter list and read-only framing, but it does not explicitly state when to choose this tool over sibling tools such as list_orders or get_order. It gives no exclusions or alternative-routing guidance, so the agent must infer the use case.

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