Skip to main content
Glama

option_price_calculate

Calculates theoretical option prices with the Black-Scholes model using an option contract ID, implied volatility, and underlying price via the Interactive Brokers API.

Instructions

Calculate theoretical option price using Black-Scholes model via IB API.

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": {
      "conId": "<conId>",
      "volatility": "<volatility>",
      "underPrice": "<underPrice>"
    },
    "name": "option_price_calculate"
  }
}

Input Schema

NameRequiredDescriptionDefault
conIdYesOption contract ID
symbolNo
secTypeNo
currencyNo
exchangeNo
underPriceYesUnderlying price
volatilityYesImplied volatility (decimal, e.g. 0.30 for 30%)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

C2.7/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 burden. 'Via IB API' hints at a remote call and therefore an active connection, but the description never confirms that dependency, says nothing about failure modes, latency, or that the result is a model estimate rather than a market quote. For an unannotated tool this is a thin behavioral disclosure.

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?

A single tight sentence with the method and mechanism front-loaded and no filler. It is efficient, though its brevity is part of why the other dimensions are under-served.

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 7-parameter quantitative tool with no annotations and no output schema, key context is missing: where the remaining Black-Scholes inputs come from, what the response contains (price only, or price plus diagnostics), and whether an authenticated IB session is required. The definition is not sufficient for an agent to call this correctly without guesswork.

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 coverage is only 43%, and the description adds no parameter meaning whatsoever. Critically, a Black-Scholes price needs strike, time to expiry, risk-free rate and dividend yield, none of which appear in the schema — the description does not explain that these are presumably derived from the conId contract definition, nor does it clarify the roles of symbol/secType/currency/exchange.

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 gives a specific verb (calculate), a specific resource (theoretical option price), the model used (Black-Scholes) and the execution route (IB API). That is enough to distinguish it in spirit from greeks_calculate and implied_volatility_calculate, but it never names those siblings or explicitly states the contrast.

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 alternative-routing guidance at all. An agent cannot tell from the text whether this should be preferred over implied_volatility_calculate for the inverse problem, or what preconditions (valid conId, live connection) must hold.

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

Deploy Server

Other Tools