Skip to main content
Glama

get_backtest_trades

Read-onlyIdempotent

The individual trades a backtest made -- entry and exit prices and times, profit or loss, and why each one closed. Use it when the user asks what a backtest actually traded; get_backtest has the summary metrics. THESE ARE SIMULATED TRADES from a backtest, not real ones -- list_trades has those. A long run is paged: at most 100 trades per call (default 25); pass offset to read on.

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": {
      "backtest_id": "<backtest_id>"
    },
    "name": "get_backtest_trades"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum results.
offsetNoPagination offset in the result units documented by the tool; zero starts the first page.
backtest_idYesThe run's UUID, as run_backtest returned it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / limit / default
      Previous value: -100New value: +25
  2. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, so the description's job is to add context — and it does: a hard cap of 100 trades per call (default 25), offset paging, and a loud warning that these are simulated, not real, trades. It does not describe ordering of results or whether entries/exits are paired, which keeps it short of a 5.

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?

Four short sentences, front-loaded with what it returns and followed by disambiguation and the paging rule. The capitalized simulation warning is placed exactly where a misread would be costly; no filler.

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?

With only three simple parameters, no output schema, and full schema coverage, the description supplies the remaining essentials: what a result row contains, the simulated nature of the data, and pagination limits. An agent has everything needed to call it correctly and interpret the response.

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 100%, so the baseline is 3, but the description adds meaning the schema lacks: the 100-item ceiling on limit (schema only says 'Maximum results') and the intended offset paging workflow. That is genuine added value beyond the structured field docs.

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?

States a specific verb+resource ('the individual trades a backtest made') and enumerates the returned fields (entry/exit prices and times, P/L, close reason). It explicitly contrasts with two siblings, get_backtest for summary metrics and list_trades for real trades, so an agent can pick it without opening a schema.

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

Usage Guidelines5/5

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

Gives an explicit trigger ('when the user asks what a backtest actually traded') plus two named alternatives with the condition that selects each. The simulated-vs-real distinction and the 'get_backtest has the summary metrics' routing are both concrete, leaving nothing to inference.

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.