Skip to main content
Glama
IBKR Agent Harness MCP Server

IBKR Agent Harness MCP Server

by RyanYang053

simulate_leveraged_etf_decay

Quantify daily-reset leveraged ETF variance drain analytically and empirically from cached benchmark bars to estimate decay for given leverage, volatility, return, and horizon.

Instructions

Quantify daily-reset leveraged ETF variance drain (e.g. TQQQ 3x) analytically and empirically on cached benchmark bars.

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

Input Schema

NameRequiredDescriptionDefault
yearsNo
leverageNo3.0
benchmarkNoQQQ
underlying_annual_volNo0.25
underlying_annual_returnNo0.12

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it only implies a read-only, cached-data computation. It says nothing about whether results are deterministic, what assumptions/model are applied, whether the empirical mode requires the benchmark bars to already be cached (and what happens if they are not), or what the response looks like. For a simulation tool whose output depends heavily on unstated modeling choices, this is a real gap.

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 front-loaded sentence with no filler or repetition, and the key qualifier 'daily-reset' comes early. It is dense with finance jargon but every clause carries information; it is arguably too short rather than padded.

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 five-parameter, default-heavy simulation with no annotations and no output schema, the description should explain what is computed and returned and how the analytic and empirical legs differ, and it does not. Still, the tool is scoped narrowly and the name plus sentence give an agent enough to recognize the domain, so it is not wholly inadequate.

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 five parameters (years, leverage, benchmark, underlying_annual_vol, underlying_annual_return), and the description adds no meaning for any of them. Critically, it never says that vol and annual return are user-supplied assumptions for the analytic leg, nor how leverage interacts with the benchmark (the schema's leverage is a free string like '3.0' with no constraint). The description does not compensate for the totally undocumented schema.

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 a specific verb+resource: quantifying leveraged-ETF volatility decay (variance drain) for daily-reset products like TQQQ 3x, and notes both analytic and empirical (cached bars) modes. That is far more informative than the name alone and no sibling tool covers this domain. It stops short of 5 because 'quantify variance drain' is jargon and the actual output (a decay figure? a simulated path? a comparison to the underlying?) is never stated.

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 reach for this tool versus e.g. run_strategy_backtest or get_bars, and no preconditions. The mention of 'cached benchmark bars' hints that it works from existing price history rather than user-supplied data, but that is the only implied usage signal. An agent must infer the use case (evaluating holding-period drag on a leveraged fund) entirely on its own.

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