Skip to main content
Glama

cex_spot_get_spot_trades

Read-onlyIdempotent

Get recent trades for a currency pair

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "currency_pair": "<currency_pair>"
    },
    "name": "cex_spot_get_spot_trades"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoEnd timestamp in seconds, defaults to current time if not specified
fromNoStart timestamp in seconds
pageNoPage number
limitNoMaximum number of records to return, default 100
last_idNoUse the last record ID from previous list as starting point for next list
reverseNoWhether to retrieve records less than last_id. Default returns records greater than last_id
currency_pairYesCurrency pair

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changed
    • addedInput schema / properties / from / format
      Added value: +"int64"
    • changedInput schema / properties / from / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / limit / default
      Added value: +100
    • addedInput schema / properties / limit / format
      Added value: +"int32"
    • addedInput schema / properties / limit / maximum
      Added value: +1000
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / page / default
      Added value: +1
    • addedInput schema / properties / page / format
      Added value: +"int32"
    • addedInput schema / properties / page / minimum
      Added value: +1
    • changedInput schema / properties / page / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / reverse / default
      Added value: +false
    • addedInput schema / properties / to / format
      Added value: +"int64"
    • changedInput schema / properties / to / type
      Previous value: -"number"New value: +"integer"
  2. Changed14 schema fields changed
    • removedInput schema / properties / from / format
      Removed value: -"int64"
    • changedInput schema / properties / from / type
      Previous value: -"integer"New value: +"number"
    • removedInput schema / properties / limit / default
      Removed value: -100
    • removedInput schema / properties / limit / format
      Removed value: -"int32"
    • removedInput schema / properties / limit / maximum
      Removed value: -1000
    • removedInput schema / properties / limit / minimum
      Removed value: -1
    • changedInput schema / properties / limit / type
      Previous value: -"integer"New value: +"number"
    • removedInput schema / properties / page / default
      Removed value: -1
    • removedInput schema / properties / page / format
      Removed value: -"int32"
    • removedInput schema / properties / page / minimum
      Removed value: -1
    • changedInput schema / properties / page / type
      Previous value: -"integer"New value: +"number"
    • removedInput schema / properties / reverse / default
      Removed value: -false
    • removedInput schema / properties / to / format
      Removed value: -"int64"
    • changedInput schema / properties / to / type
      Previous value: -"integer"New value: +"number"
  3. Changed14 schema fields changed
    • addedInput schema / properties / from / format
      Added value: +"int64"
    • changedInput schema / properties / from / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / limit / default
      Added value: +100
    • addedInput schema / properties / limit / format
      Added value: +"int32"
    • addedInput schema / properties / limit / maximum
      Added value: +1000
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / page / default
      Added value: +1
    • addedInput schema / properties / page / format
      Added value: +"int32"
    • addedInput schema / properties / page / minimum
      Added value: +1
    • changedInput schema / properties / page / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / reverse / default
      Added value: +false
    • addedInput schema / properties / to / format
      Added value: +"int64"
    • changedInput schema / properties / to / type
      Previous value: -"number"New value: +"integer"
  4. Changed14 schema fields changed
    • removedInput schema / properties / from / format
      Removed value: -"int64"
    • changedInput schema / properties / from / type
      Previous value: -"integer"New value: +"number"
    • removedInput schema / properties / limit / default
      Removed value: -100
    • removedInput schema / properties / limit / format
      Removed value: -"int32"
    • removedInput schema / properties / limit / maximum
      Removed value: -1000
    • removedInput schema / properties / limit / minimum
      Removed value: -1
    • changedInput schema / properties / limit / type
      Previous value: -"integer"New value: +"number"
    • removedInput schema / properties / page / default
      Removed value: -1
    • removedInput schema / properties / page / format
      Removed value: -"int32"
    • removedInput schema / properties / page / minimum
      Removed value: -1
    • changedInput schema / properties / page / type
      Previous value: -"integer"New value: +"number"
    • removedInput schema / properties / reverse / default
      Removed value: -false
    • removedInput schema / properties / to / format
      Removed value: -"int64"
    • changedInput schema / properties / to / type
      Previous value: -"integer"New value: +"number"
  5. Changed14 schema fields changed
    • addedInput schema / properties / from / format
      Added value: +"int64"
    • changedInput schema / properties / from / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / limit / default
      Added value: +100
    • addedInput schema / properties / limit / format
      Added value: +"int32"
    • addedInput schema / properties / limit / maximum
      Added value: +1000
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / page / default
      Added value: +1
    • addedInput schema / properties / page / format
      Added value: +"int32"
    • addedInput schema / properties / page / minimum
      Added value: +1
    • changedInput schema / properties / page / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / reverse / default
      Added value: +false
    • addedInput schema / properties / to / format
      Added value: +"int64"
    • changedInput schema / properties / to / type
      Previous value: -"number"New value: +"integer"
  6. Changed14 schema fields changed
    • removedInput schema / properties / from / format
      Removed value: -"int64"
    • changedInput schema / properties / from / type
      Previous value: -"integer"New value: +"number"
    • removedInput schema / properties / limit / default
      Removed value: -100
    • removedInput schema / properties / limit / format
      Removed value: -"int32"
    • removedInput schema / properties / limit / maximum
      Removed value: -1000
    • removedInput schema / properties / limit / minimum
      Removed value: -1
    • changedInput schema / properties / limit / type
      Previous value: -"integer"New value: +"number"
    • removedInput schema / properties / page / default
      Removed value: -1
    • removedInput schema / properties / page / format
      Removed value: -"int32"
    • removedInput schema / properties / page / minimum
      Removed value: -1
    • changedInput schema / properties / page / type
      Previous value: -"integer"New value: +"number"
    • removedInput schema / properties / reverse / default
      Removed value: -false
    • removedInput schema / properties / to / format
      Removed value: -"int64"
    • changedInput schema / properties / to / type
      Previous value: -"integer"New value: +"number"
  7. Changed14 schema fields changed
    • addedInput schema / properties / from / format
      Added value: +"int64"
    • changedInput schema / properties / from / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / limit / default
      Added value: +100
    • addedInput schema / properties / limit / format
      Added value: +"int32"
    • addedInput schema / properties / limit / maximum
      Added value: +1000
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / page / default
      Added value: +1
    • addedInput schema / properties / page / format
      Added value: +"int32"
    • addedInput schema / properties / page / minimum
      Added value: +1
    • changedInput schema / properties / page / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / reverse / default
      Added value: +false
    • addedInput schema / properties / to / format
      Added value: +"int64"
    • changedInput schema / properties / to / type
      Previous value: -"number"New value: +"integer"
  8. Changed14 schema fields changed
    • removedInput schema / properties / from / format
      Removed value: -"int64"
    • changedInput schema / properties / from / type
      Previous value: -"integer"New value: +"number"
    • removedInput schema / properties / limit / default
      Removed value: -100
    • removedInput schema / properties / limit / format
      Removed value: -"int32"
    • removedInput schema / properties / limit / maximum
      Removed value: -1000
    • removedInput schema / properties / limit / minimum
      Removed value: -1
    • changedInput schema / properties / limit / type
      Previous value: -"integer"New value: +"number"
    • removedInput schema / properties / page / default
      Removed value: -1
    • removedInput schema / properties / page / format
      Removed value: -"int32"
    • removedInput schema / properties / page / minimum
      Removed value: -1
    • changedInput schema / properties / page / type
      Previous value: -"integer"New value: +"number"
    • removedInput schema / properties / reverse / default
      Removed value: -false
    • removedInput schema / properties / to / format
      Removed value: -"int64"
    • changedInput schema / properties / to / type
      Previous value: -"integer"New value: +"number"
  9. Changed14 schema fields changed
    • addedInput schema / properties / from / format
      Added value: +"int64"
    • changedInput schema / properties / from / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / limit / default
      Added value: +100
    • addedInput schema / properties / limit / format
      Added value: +"int32"
    • addedInput schema / properties / limit / maximum
      Added value: +1000
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / page / default
      Added value: +1
    • addedInput schema / properties / page / format
      Added value: +"int32"
    • addedInput schema / properties / page / minimum
      Added value: +1
    • changedInput schema / properties / page / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / reverse / default
      Added value: +false
    • addedInput schema / properties / to / format
      Added value: +"int64"
    • changedInput schema / properties / to / type
      Previous value: -"number"New value: +"integer"
  10. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered without the description's help. The description adds no behavioral context of its own — notably how far back "recent" extends, whether this is public/unauthenticated market data, or how pagination via page/last_id behaves. With annotations present, this is an adequate-but-thin 3.

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?

A single, front-loaded sentence with no filler. It is efficiently written, though the efficiency comes partly from omitting information rather than from tight phrasing.

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 seven-parameter public market-data read with no output schema, the schema and annotations carry most of the load, so the description is only marginally insufficient. Still, an agent gets no answer on the retention window for "recent", pagination strategy, or auth requirements, which are the open questions for this tool.

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%, so all seven parameters (from, to, page, limit, last_id, reverse, currency_pair) are fully documented in the schema and the baseline is 3. The description contributes nothing further — it doesn't explain the last_id/reverse cursor mechanics or pair formatting.

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?

"Get recent trades for a currency pair" names a specific verb (get) and resource (trades) and the required key, so an agent knows exactly what data comes back. It does not distinguish itself in text from sibling trade endpoints such as cex_fx_get_fx_trades or cex_dc_list_dc_trades; only the tool name's 'spot' segment carries that differentiation.

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 statement of when to use this versus cex_spot_get_spot_candlesticks, cex_spot_get_spot_order_book, or the futures/options/derivatives trade siblings, and no prerequisites or exclusions. The purpose implicitly suggests market-data lookup, but nothing routes the agent among alternatives.

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.