Skip to main content
Glama
IBKR Agent Harness MCP Server

IBKR Agent Harness MCP Server

by RyanYang053

analyze_options

Run Black-Scholes Greeks, implied volatility, covered call yield and breakeven, and LEAPS capital efficiency calculations for a given strategy, spot, strike, and expiry.

Instructions

Analytical Options Lab: Black-Scholes Greeks, bisection Implied Volatility solver, Covered Call yield/breakeven, and LEAPS capital efficiency.

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": "<strategy>",
      "spot": "<spot>",
      "strike": "<strike>",
      "days_to_expiry": "<days_to_expiry>"
    },
    "name": "analyze_options"
  }
}

Input Schema

NameRequiredDescriptionDefault
spotYes
strikeYes
premiumNo
strategyYes
cost_basisNo
volatilityNo0.35
days_to_expiryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and falls short. It does not say this is a side-effect-free computation, does not describe the response shape, does not state failure behavior (e.g., what happens when the IV bisection fails to converge), and gives no unit or format convention.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single front-loaded sentence with no filler, which is structurally clean. But given a 7-parameter, multi-mode calculation tool, brevity here is under-specification rather than concision, so it cannot earn above a middle score.

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?

This is a fairly complex multi-mode calculator with 7 inputs, four required, no annotations, no parameter descriptions, and no output schema. The description omits required knowledge: accepted strategy values, input units/formatting for the string-typed numeric fields, and what results are returned. It is well short of complete for the tool's complexity.

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 7 parameters, so the description must compensate and largely does not. It implies volatility feeds the IV solver and that premium/cost_basis relate to covered call and LEAPS math, but it never maps a field to a meaning, never lists valid `strategy` values, and never explains why `spot` and `strike` are strings (formatted like "150" or "$150"? percentages where?). Only diffuse hints are added.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific domain (options analytics) and enumerates four capabilities: Black-Scholes Greeks, bisection IV solving, covered call yield/breakeven, and LEAPS capital efficiency. However, it is a noun-phrase feature list with no verb describing what the agent actually gets back, and it never says how the four capabilities map to the `strategy` input. An agent can tell roughly what area the tool covers but not what calling it produces.

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 when-to-use, when-not-to-use, or prerequisite guidance, and no alternative tool is named (e.g., how this differs from run_strategy_backtest or get_bars for options-style work). The `strategy` parameter is a discriminator, yet the description gives no hint about which strategy values are supported or what each one computes.

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