Skip to main content
Glama
IBKR Agent Harness MCP Server

IBKR Agent Harness MCP Server

by RyanYang053

run_strategy_backtest

Compare Buy & Hold, drawdown dip-buy, DCA, and leveraged sleeve strategies via walk-forward replay with configurable symbol, costs, and capital.

Instructions

Walk-forward replay comparing 100% Buy & Hold, 70/30 Drawdown Dip-Buy, Periodic DCA, and 80/20 3x Daily-Reset Sleeve.

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

Input Schema

NameRequiredDescriptionDefault
symbolNoQQQ
cost_bpsNo5
initial_capitalNo10000

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden, and it falls short: it does not explain what a 'walk-forward replay' window is, how '70/30 Drawdown Dip-Buy' or '80/20 3x Daily-Reset Sleeve' are defined, whether costs are applied, or what the run returns. The one piece of genuine behavioral value is that four named strategies are compared in a single run.

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?

It is a single compact sentence with no filler, and the key comparative framing is front-loaded. The trade-off is that terseness becomes cryptic: it is a verbless noun phrase dense with unexplained strategy jargon.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simulation tool with no annotations, no output schema, and three fully undocumented parameters, the description should at minimum explain the strategy definitions and the cost/capital assumptions. It leaves the agent unable to predict or interpret results, so it is materially incomplete for the tool's complexity.

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

Parameters1/5

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

Schema description coverage is 0% across three parameters (symbol, cost_bps, initial_capital) and the description mentions none of them. It neither names the inputs nor explains that cost_bps is a basis-point trading cost assumption or how initial_capital affects results, so it compensates for none of the schema gap.

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 the operation ('walk-forward replay comparing') and the exact set of four strategy variants being evaluated, so an agent knows this is a comparative backtest rather than a single-strategy run. It never states a main verb-subject ('This tool runs...') and does not distinguish itself from siblings such as simulate_leveraged_etf_decay, but the resource is unmistakable.

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

Usage Guidelines2/5

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

There is no statement of when to use this tool versus alternatives, no prerequisites (e.g. whether bar data must exist first), and no exclusions. An agent must infer usage purely from the strategy list, and cannot tell how this differs from the leveraged-ETF decay simulator sibling.

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