Headroom Desk options calculators
Exact options P/L at expiry, Black-Scholes, Greeks and covered-call/put returns on your numbers.
¿Debería usar esto?
Calidad y seguridad
Hallazgos (2)
- LOWen options_pnl_before_expiry
- LOWen implied_volatility
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"calculators": {
"url": "https://headroomdesk.com/mcp"
}
}
}Puntos de conexión remotos
https://headroomdesk.com/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (8)
🟢options_pnl_at_expiry(legs, prices_at_expiry)
Exact P/L at expiry for a position of up to 8 legs (calls, puts, shares, long or short): net premium (debit or credit), breakevens, highest and lowest P/L at expiry (or Unlimited), and the P/L at each strike and at any underlying prices given. Covers spreads, straddles, strangles, iron condors, butterflies, covered calls and collars. Uses only the numbers supplied.
Esquema de entrada
{
"type": "object",
"properties": {
"legs": {
"type": "array",
"minItems": 1,
"maxItems": 8,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"type",
"side",
"quantity",
"price"
],
"properties": {
"type": {
"type": "string",
"enum": [
"call",
"put",
"stock"
],
"description": "The leg: a call option, a put option, or shares of the underlying stock."
},
"side": {
"type": "string",
"enum": [
"long",
"short"
],
"description": "long = bought (premium paid), short = written or sold short (premium received)."
},
"quantity": {
"type": "integer",
"minimum": 1,
"description": "Contracts for an option, shares for stock."
},
"strike": {
"type": [
"string",
"number"
],
"description": "Strike per share (options only)."
},
"price": {
"type": [
"string",
"number"
],
"description": "Premium per share for an option, or the price paid per share for stock."
},
"multiplier": {
"type": "integer",
"minimum": 1,
"description": "Shares per contract; default 100."
}
}
},
"description": "The position: 1 to 8 legs (calls, puts or shares, long or short)."
},
"prices_at_expiry": {
"type": "array",
"maxItems": 20,
"items": {
"type": [
"string",
"number"
],
"description": "Dollars per share, at most 4 decimals, for example \"2.35\"."
},
"description": "Optional underlying prices at expiry to evaluate."
}
},
"required": [
"legs"
],
"additionalProperties": false
}🟢options_pnl_before_expiry(legs, underlying_price, days_from_now, rate_pct, dividend_yield_pct)
Black-Scholes model estimate of a position's P/L a given number of days from now at a given underlying price, for up to 8 legs. Each option leg needs its days to expiry and volatility. The interest rate and dividend yield must be supplied; nothing is built in.
Esquema de entrada
{
"type": "object",
"properties": {
"legs": {
"type": "array",
"minItems": 1,
"maxItems": 8,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"type",
"side",
"quantity",
"price"
],
"properties": {
"type": {
"type": "string",
"enum": [
"call",
"put",
"stock"
],
"description": "The leg: a call option, a put option, or shares of the underlying stock."
},
"side": {
"type": "string",
"enum": [
"long",
"short"
],
"description": "long = bought (premium paid), short = written or sold short (premium received)."
},
"quantity": {
"type": "integer",
"minimum": 1,
"description": "Contracts for an option, shares for stock."
},
"strike": {
"type": [
"string",
"number"
],
"description": "Strike per share (options only)."
},
"price": {
"type": [
"string",
"number"
],
"description": "Premium per share for an option, or the price paid per share for stock."
},
"multiplier": {
"type": "integer",
"minimum": 1,
"description": "Shares per contract; default 100."
},
"days_to_expiry": {
"type": "integer",
"minimum": 0,
"description": "Calendar days from now to this option's expiry (options only)."
},
"volatility_pct": {
"type": "number",
"description": "Volatility per year in percent for this option, for example 30 (options only)."
}
}
},
"description": "The position: 1 to 8 legs; each option leg also needs days_to_expiry and volatility_pct."
},
"underlying_price": {
"type": "number",
"description": "Underlying price in dollars at which to value the position."
},
"days_from_now": {
"type": "integer",
"minimum": 0,
"description": "Calendar days from now; not after any leg's expiry."
},
"rate_pct": {
"type": "number",
"description": "Interest rate per year in percent, continuously compounded (0 is allowed)."
},
"dividend_yield_pct": {
"type": "number",
"description": "Dividend yield per year in percent, continuous (0 is allowed)."
}
},
"required": [
"legs",
"underlying_price",
"days_from_now",
"rate_pct",
"dividend_yield_pct"
],
"additionalProperties": false
}🟢black_scholes(option_type, underlying_price, strike, days_to_expiry, volatility_pct, ...)
Black-Scholes model value of one European-style call or put per share and per 100-share contract, with delta, gamma, theta per calendar day, vega per volatility point and rho per rate point. All inputs, including the interest rate and dividend yield, must be supplied.
Esquema de entrada
{
"type": "object",
"properties": {
"option_type": {
"type": "string",
"enum": [
"call",
"put"
],
"description": "Option type: call or put."
},
"underlying_price": {
"type": "number",
"description": "Underlying price in dollars."
},
"strike": {
"type": "number",
"description": "Strike in dollars."
},
"days_to_expiry": {
"type": "number",
"description": "Calendar days to expiry (above zero)."
},
"volatility_pct": {
"type": "number",
"description": "Volatility per year in percent, for example 30."
},
"rate_pct": {
"type": "number",
"description": "Interest rate per year in percent (0 is allowed)."
},
"dividend_yield_pct": {
"type": "number",
"description": "Dividend yield per year in percent (0 is allowed)."
}
},
"required": [
"option_type",
"underlying_price",
"strike",
"days_to_expiry",
"volatility_pct",
"rate_pct",
"dividend_yield_pct"
],
"additionalProperties": false
}🟢implied_volatility(option_type, option_price, underlying_price, strike, days_to_expiry, ...)
The Black-Scholes volatility at which the model value equals a given option price, or a message when no volatility fits that price. All inputs, including the interest rate and dividend yield, must be supplied.
Esquema de entrada
{
"type": "object",
"properties": {
"option_type": {
"type": "string",
"enum": [
"call",
"put"
],
"description": "Option type: call or put."
},
"option_price": {
"type": "number",
"description": "Option price per share in dollars."
},
"underlying_price": {
"type": "number",
"description": "Underlying price in dollars."
},
"strike": {
"type": "number",
"description": "Strike in dollars."
},
"days_to_expiry": {
"type": "number",
"description": "Calendar days to expiry (above zero)."
},
"rate_pct": {
"type": "number",
"description": "Interest rate per year in percent (0 is allowed)."
},
"dividend_yield_pct": {
"type": "number",
"description": "Dividend yield per year in percent (0 is allowed)."
}
},
"required": [
"option_type",
"option_price",
"underlying_price",
"strike",
"days_to_expiry",
"rate_pct",
"dividend_yield_pct"
],
"additionalProperties": false
}🟢covered_call(share_price, call_strike, premium, days_to_expiry, contracts)
For 100 shares per contract with one call written against them: net debit, breakeven at expiry, return if called and if not called (each with its per-year figures), highest and lowest P/L at expiry.
Esquema de entrada
{
"type": "object",
"properties": {
"share_price": {
"type": [
"string",
"number"
],
"description": "Price per share paid for the stock (or its price now), in dollars, e.g. \"50\"."
},
"call_strike": {
"type": [
"string",
"number"
],
"description": "Strike of the call written against the shares, in dollars."
},
"premium": {
"type": [
"string",
"number"
],
"description": "Premium received per share for the call."
},
"days_to_expiry": {
"type": "integer",
"minimum": 1,
"description": "Calendar days until the call expires."
},
"contracts": {
"type": "integer",
"minimum": 1,
"default": 1,
"description": "Number of contracts; each covers 100 shares. Default 1."
}
},
"required": [
"share_price",
"call_strike",
"premium",
"days_to_expiry"
],
"additionalProperties": false
}🟢cash_secured_put(put_strike, premium, days_to_expiry, contracts)
For a put written with cash set aside to take 100 shares per contract at the strike: cash secured, breakeven and cost per share if assigned, return on the cash with its per-year figures, highest and lowest P/L at expiry.
Esquema de entrada
{
"type": "object",
"properties": {
"put_strike": {
"type": [
"string",
"number"
],
"description": "Strike of the put written, in dollars."
},
"premium": {
"type": [
"string",
"number"
],
"description": "Premium received per share for the put."
},
"days_to_expiry": {
"type": "integer",
"minimum": 1,
"description": "Calendar days until the put expires."
},
"contracts": {
"type": "integer",
"minimum": 1,
"default": 1,
"description": "Number of contracts; each secures 100 shares. Default 1."
}
},
"required": [
"put_strike",
"premium",
"days_to_expiry"
],
"additionalProperties": false
}🟢covered_call_roll(share_cost, premiums_received_so_far, cost_to_close, new_premium, new_strike, ...)
Closing a written call and writing a new one: net credit or debit of the roll, total premium kept, new breakeven, return if called at the new strike with its per-year figures, highest and lowest P/L at the new expiry.
Esquema de entrada
{
"type": "object",
"properties": {
"share_cost": {
"type": [
"string",
"number"
],
"description": "What the shares cost per share, in dollars."
},
"premiums_received_so_far": {
"type": [
"string",
"number"
],
"description": "Premiums kept so far per share (default 0)."
},
"cost_to_close": {
"type": [
"string",
"number"
],
"description": "Cost per share to close the current call (default 0)."
},
"new_premium": {
"type": [
"string",
"number"
],
"description": "Premium per share received for the new call."
},
"new_strike": {
"type": [
"string",
"number"
],
"description": "Strike of the new call, in dollars."
},
"days_to_new_expiry": {
"type": "integer",
"minimum": 1,
"description": "Calendar days until the new call expires."
},
"contracts": {
"type": "integer",
"minimum": 1,
"default": 1,
"description": "Number of contracts; each covers 100 shares. Default 1."
}
},
"required": [
"share_cost",
"new_premium",
"new_strike",
"days_to_new_expiry"
],
"additionalProperties": false
}🟢annualized_return(return_pct, days)
Turns a return over a number of calendar days into per-year figures, simple and compounded, shown beside the period return.
Esquema de entrada
{
"type": "object",
"properties": {
"return_pct": {
"type": "number",
"description": "Return over the period in percent; a loss with a minus, not below -100."
},
"days": {
"type": "integer",
"minimum": 1,
"description": "Calendar days the return took."
}
},
"required": [
"return_pct",
"days"
],
"additionalProperties": false
}Comunidad
Evidencia