Skip to main content
Glama
Reamer Research MCP server

Reamer Research MCP server

by reamerlabs

closed_trades

Retrieve completed trades from a backtest run, including entry/exit prices, P&L, fees, and slippage. Sort, filter by ticker, and page results to analyze trade performance.

Instructions

The closed trades of a backtest run: ticker, side, open and close time, entry and exit price, qty, gross and net P&L, fees, slippage, return_pct, stop_loss, take_profit. sort_by is any of those fields (for example net_pnl with descending=True for the best trades). Paged by limit and offset.

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": {
      "run_id": "<run_id>"
    },
    "name": "closed_trades"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
run_idYes
tickerNo
sort_byNoclose_timestamp
descendingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the burden; it discloses pagination via limit/offset, sorting semantics, and the exact fields returned. It omits whether the call is strictly read-only, any auth or permission requirements, and whether limits are capped, leaving meaningful behavioral gaps for an unannotated tool.

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?

One dense, front-loaded paragraph with no wasted wording; the field list and the sorting example each earn their space. The enumerated field list is long but substitutes for the missing output schema, so the density is justified.

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 6-parameter, unannotated tool with no output schema, listing the returned fields is a valuable substitute for the missing return documentation. However, the required run_id, the filtering role of ticker, and read-only/limit characteristics are left undocumented, so it is adequate but incomplete.

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 0%, so the description must compensate; it explains sort_by (any returned field, with a worked example), descending, and paging via limit/offset. The required run_id is never explained and the ticker parameter is only mentioned as an output field, leaving ambiguity about whether it also filters results.

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?

Names a specific resource (closed trades of a backtest run) and enumerates the returned fields, which clearly separates it from open_trade_diagnostics. It reads as a noun phrase with no verb such as 'list' or 'retrieve', and it makes no explicit sibling differentiation, so it falls short of a 5.

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?

Gives concrete usage for sorting ('net_pnl with descending=True for the best trades') and states the paging mechanism, which is genuinely actionable. It offers no when-to-use/when-not guidance versus alternatives such as open_trade_diagnostics, so usage is implied rather than directed.

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