Skip to main content
Glama
Reamer Research MCP server

Reamer Research MCP server

by reamerlabs

backtest

Run strategy simulations on local CSV/BIN bar data, configure capital, costs, and date ranges, then return performance metrics and a run ID for trade inspection.

Instructions

Run a Reamer Research backtest.

strategy_file: path to a Python file defining on_bar(data) as a function, a class or an object (see api_reference). Relative paths resolve against the server's working directory. data: a .csv or .bin path, a list of them, or {ticker: path}. A ticker is named after its file. strategy_name: which global in the file to run, when it defines several. lookback: bars per on_bar window; defaults to the strategy's lookback, else 1. start, end: epoch seconds UTC, inclusive; only bars in that range run. settings: rr.backtest settings such as initial_capital, commission_per_unit, spread, slippage, price_volatility, leverage, rng_seed. Costs default to 0. ticker_config: {ticker: {setting: value}} where one ticker's costs differ.

Returns the summary metrics and a run_id for closed_trades, monte_carlo, printed_output and open_trade_diagnostics.

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": {
      "strategy_file": "<strategy_file>",
      "data": "<data>"
    },
    "name": "backtest"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNo
dataYes
startNo
lookbackNo
settingsNo
timeout_sNo
strategy_fileYes
strategy_nameNo
ticker_configNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses path resolution ('relative paths resolve against the server's working directory'), ticker naming from file names, UTC epoch semantics for the inclusive range, default-cost behavior, and what the response contains. Gaps remain — the timeout_s parameter is never mentioned, nor are failure modes or the fact that arbitrary user Python is executed.

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?

Purpose is front-loaded in one line and the remainder is a tight parameter-annotation list with no filler, well matched to a nine-parameter tool. It is slightly long but nearly every line carries information the schema lacks.

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?

For a complex, config-heavy execution tool with zero schema coverage and no output schema, the description covers inputs thoroughly and usefully names the return payload and downstream run_id consumers. The unaddressed timeout_s and the absence of any execution-safety or error context keep it short of complete.

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 description coverage is 0%, so the description must compensate, and it documents eight of the nine parameters with types, defaults, and semantics (list-vs-dict data forms, lookback fallback chain, per-ticker cost overrides). Only timeout_s is left undocumented, which is the main shortfall against a 9-parameter surface.

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 opening sentence gives a specific verb+resource ('Run a ... backtest') and the closing sentence clarifies the product: summary metrics plus a run_id. The mention that run_id feeds closed_trades, monte_carlo, printed_output and open_trade_diagnostics implicitly positions this as the upstream producer for those siblings, though it never states that explicitly.

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 context is implied rather than declared: an agent can infer this is the entry point whose run_id the sibling tools consume, and that strategy_name is only needed 'when it defines several'. There is no explicit when-to-use/when-not or statement about prerequisites such as a valid strategy file path.

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