Skip to main content
Glama

Vanilla price

option_price
Read-onlyIdempotent

Prices vanilla European or American options with continuous dividends via optional QuantLib, returning per-unit premium and any degraded flag with its artifact path.

Instructions

Price a vanilla European or American option with optional QuantLib. Continuous dividends, premium per unit; no chain Greeks are changed. Before quoting any number from this result, state the degraded flag and its reason when the result carries one, and cite the artifact path it names.

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": {
      "spot": "<spot>",
      "strike": "<strike>",
      "valuation_date": "<valuation_date>",
      "expiry": "<expiry>",
      "volatility": "<volatility>",
      "rate": "<rate>",
      "dividend_yield": "<dividend_yield>",
      "kind": "<kind>",
      "exercise_style": "<exercise_style>"
    },
    "name": "option_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
rateYes
spotYes
expiryYes
strikeYes
volatilityYes
dividend_yieldYes
exercise_styleYes
valuation_dateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, closed-world behavior, and the description adds genuinely new behavioral facts: QuantLib is an optional dependency so a degraded result is possible, dividends are treated as continuous, and quotes are premium per unit. The instruction to surface the degraded flag, its reason, and the named artifact path is useful operational context that the annotations do not carry. It does not say what causes degradation or how pricing behaves without QuantLib, leaving a modest 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?

The pricing statement is front-loaded in the first sentence and the second sentence is a single conditional reporting rule. Both sentences earn their place, though the reporting rule is dense and could be split for readability.

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?

With nine required string/number parameters at 0% schema coverage and no output schema, the description is the only place an agent could learn accepted values and formats, and it supplies none of that. The free-form kind and exercise_style strings in particular invite malformed calls. The degraded-result protocol is a good addition but does not compensate for the parameter documentation gap.

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?

Nine required parameters with 0% schema description coverage and no enums, yet the description explains none of them individually. Only "continuous dividends" indirectly hints at dividend_yield, and "premium per unit" speaks to output scale rather than a parameter. The agent gets no help on date formats, allowed values for kind or exercise_style, or the meaning of rate and volatility conventions.

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?

"Price a vanilla European or American option" gives a specific verb plus the exact instrument scope, and "no chain Greeks are changed" signals it is a single-contract pricing tool rather than a chain/greeks tool. It stops short of naming which sibling to use for chain-level or Greek-ladder work, so the differentiation is implied rather than explicit.

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

Usage Guidelines3/5

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

The scope statement (single vanilla option, continuous dividends, does not touch the chain) implies when this tool applies, and the reporting protocol about the degraded flag tells the agent how to present results. There is no explicit when-not guidance and no named alternative for multi-leg, chain, or backtest pricing needs.

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