Skip to main content
Glama
IBKR MCP Server

IBKR MCP Server

analyze_option_spread

Analyzes option spread strategies like bull calls, bear puts, and straddles from symbol, strike, expiry, and quantity inputs to compare payoff and risk.

Instructions

Analyze option spread strategies (bull_call, bear_put, straddle, etc.).

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": {
      "symbol": "<symbol>",
      "strategy": "<strategy>",
      "strike1": "<strike1>"
    },
    "name": "analyze_option_spread"
  }
}

Input Schema

NameRequiredDescriptionDefault
expiryNo
symbolYes
strike1Yes
strike2No
quantityNo
strategyYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations at all, the description carries the full disclosure burden and delivers almost nothing: it never states that this is a non-mutating computation, what pricing/valuation assumptions it applies, whether quotes are fetched live, or any rate/auth constraints. For a 6-parameter analytical tool, this is a substantial gap.

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?

One short sentence with no filler and the purpose is front-loaded, but it is under-specified rather than tight; the trailing 'etc.' signals an open-ended value set without documenting it, leaving ambiguity where brevity should have bought room for detail.

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?

An output schema exists, so return-value explanation is excused, but the input side is bare: 6 params at 0% coverage, no annotations, and only one sentence of prose. An agent would have to guess strike ordering and expiry format, which are error-prone for spread analysis.

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 6 parameters, so the description must compensate and does not. Only the 'strategy' parameter's value space is hinted at; symbol, strike1 vs strike2 (which leg is which), expiry format, and quantity units are entirely unexplained in both places.

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?

Names a specific verb ('Analyze') and resource ('option spread strategies') and enumerates concrete strategy values (bull_call, bear_put, straddle). It does not, however, differentiate itself from siblings such as get_option_chain or calculate_position_size, so an agent cannot tell from the text alone whether this prices a spread, evaluates payoff, or recommends one.

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 guidance, no prerequisites (e.g., must a position exist first?), and no named alternative for related tasks. Usage is only implied by the tool name and the examples.

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