Skip to main content
Glama

Recent trades

get_trades
Read-onlyIdempotent

The latest trades in one market: time, side, price, size and value. Ask: "Show the last 10 BTC trades."

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_trades"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo1-100 (default 20)
symbolNomarket symbol as get_markets lists it, e.g. BTC, ETH or ETHUSDT
pair_idNoor the market's pair id, e.g. 1

Output Schema

NameRequiredDescriptionDefault
countNo
marketNo
tradesNo
networkYestestnet or mainnet
pair_idNo
summaryYesone plain sentence

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description contributes the meaningful constraint that results are scoped to a single market, but says nothing about pagination, recency window, or what happens when both symbol and pair_id are supplied.

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?

Two short sentences, with the resource and returned fields front-loaded and the example kept brief. The sample query is mildly redundant with the schema's own examples, but nothing is padded.

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?

With an output schema present and full parameter coverage, the description does not need to explain return shape; it only needs the scope and a usage cue, both of which it supplies. The remaining gap is the unresolved symbol-vs-pair_id selection and the relationship to sibling trade/orderbook tools.

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%, documenting limit's 1-100 bound and default 20, and framing symbol and pair_id as alternate market identifiers. The description adds no syntax or precedence information beyond that, so the baseline of 3 applies.

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?

The description names a specific resource and scope ('the latest trades in one market') and enumerates the payload fields (time, side, price, size, value), so an agent knows exactly what it returns. It does not differentiate itself from plausible siblings like get_fills or get_orderbook, which also surface trade-level data.

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?

Usage is conveyed only through an example query ('Show the last 10 BTC trades'), which implies the when-to-use case but never states it. There is no explicit when-not guidance and no named alternative for retrieving trade history by account or for aggregate depth.

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.