Skip to main content
Glama
Reamer Research MCP server

Reamer Research MCP server

by reamerlabs

monte_carlo

Resamples a stored backtest's per-trade returns to estimate loss, ruin, and maximum-drawdown statistics via simulations.

Instructions

Monte Carlo on a backtest run: resamples its per-trade returns into loss, ruin and maximum-drawdown statistics. Reruns the stored backtest, which gives the same trades to the byte, then simulates.

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": "monte_carlo"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNo
run_idYes
timeout_sNo
simulationsNo

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?

With no annotations, the description carries the full burden. It usefully discloses that the tool re-runs the stored backtest to reproduce byte-identical trades before simulating, which signals a compute-heavy, deterministic operation. It does not say whether anything is persisted, whether the run is mutated, or what the cost/latency profile is despite a default 600s timeout.

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?

Two tight sentences, front-loaded with the operation and its outputs, then the key mechanical fact about how the data is obtained. No filler; 'to the byte' earns its place by conveying determinism.

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 four-parameter simulation tool with no output schema and no annotations, the description does cover the essential shape: what goes in (a backtest run), how it works (rerun then simulate), and what comes out (loss, ruin, max-drawdown statistics). The remaining hole is parameter-level behavior, particularly seed and simulations defaults, but a vague agent would still call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across four parameters, and the description contributes no meaning for any of them: seed, simulations and timeout_s are entirely unexplained, and run_id's referent (a stored backtest run) is only obliquely implied. Reproducibility via seed and the effect of simulation count are exactly what an agent needs here and are absent.

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?

States a specific verb and resource: resamples a backtest run's per-trade returns into loss, ruin and maximum-drawdown statistics. The phrase 'reruns the stored backtest' implicitly separates it from the sibling 'backtest' (which presumably creates a run), but no sibling is named, so differentiation is left to inference.

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 implied rather than stated: the tool consumes an existing run_id, so an agent can infer a backtest run must already exist. There is no explicit when-to-use versus alternatives, no guidance on when a Monte Carlo analysis is warranted over a plain backtest, and no exclusions.

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