Skip to main content
Glama

TradingCalc MCP: Options, Forex, Risk Stats, Prediction Markets, On-Chain & Crypto Futures

Window Fair Value

workflow.run_window_fair_value
Read-only

Theoretical fair value for a time-windowed crypto up/down contract (the shape ADI Predictstreet and Kalshi-style daily crypto markets use: pays out based on whether the settlement price finishes at/above or below a reference price pinned at window open, by a fixed close time): a cash-or-nothing digital option, priced with the standard N(d2) formula. It gives the probability at the close time only, not the probability of touching a level at any point before it (first passage). Time convention: a year is 365 days. Use this when there's no live market price to read (e.g. a venue's contract has real terms but zero trading volume) instead of a live-market odds tool. Volatility is a required manual input; there is no live implied-vol market on these contracts to pull it from. Use when user asks "what should this up/down contract be worth?" or "what's the fair probability BTC finishes above $X in N minutes?". Returns: d1, d2, probAbovePct, probBelowPct, fairPriceAboveCents, fairPriceBelowCents (cents convention, directly comparable to how these venues quote a contract).

Input Schema

NameRequiredDescriptionDefault
currentPriceYesCurrent spot price of the coin, in USD.
volatilityPctYesAnnualized volatility, in percentage points (e.g. 50 for 50%). Required; no live source for this on these contracts.
minutesToCloseYesMinutes remaining until the window closes/settles.
referencePriceYesThe reference/pinned price the contract resolves against (the window's open price, or a stated strike).
riskFreeRatePctNoRisk-free rate in percentage points. Default 0: negligible for these short windows.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / riskFreeRatePct / description
      Previous value: -"Risk-free rate in percentage points. Default 0 — negligible for these short windows."New value: +"Risk-free rate in percentage points. Default 0: negligible for these short windows."
    • changedInput schema / properties / volatilityPct / description
      Previous value: -"Annualized volatility, in percentage points (e.g. 50 for 50%). Required — no live source for this on these contracts."New value: +"Annualized volatility, in percentage points (e.g. 50 for 50%). Required; no live source for this on these contracts."
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld=false/non-destructive; the description adds substantial non-annotation context: it computes terminal distribution only (not first passage/touch), uses a 365-day year convention, and requires volatility as a manual input because there is no live implied-vol market for these contracts. Those are exactly the assumptions that would otherwise cause silent misuse.

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?

Front-loaded with the core purpose and the payout definition, then usage, then returns — a sensible order with no filler sentences. The venue-naming parenthetical ("the shape ADI Predictstreet and Kalshi-style...") is slightly verbose and could be trimmed without losing meaning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, but the description enumerates the returned fields (d1, d2, probAbovePct, probBelowPct, fairPriceAboveCents, fairPriceBelowCents) and their convention. Combined with the model assumptions and the manual-vol caveat, an agent has everything needed to call and interpret this tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so baseline is 3; the description earns extra credit by explaining that volatilityPct has no live source and must be supplied manually, and by clarifying the cents convention that makes outputs directly comparable to venue quotes. It does not elaborate on how minutesToClose interacts with the annualization beyond the 365-day note, leaving a little on the table.

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

Purpose5/5

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

Names a specific verb (price/theoretical fair value) and a precise resource (time-windowed crypto up/down cash-or-nothing digital contract), and pins down the exact model used (N(d2)). It explicitly delimits itself from adjacent concepts: probability at close only, not first-passage/touch probability. An agent can distinguish this from run_black_scholes, run_black_scholes_live, and run_market_implied_odds without opening the schema.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use condition ("no live market price to read... e.g. a venue's contract has real terms but zero trading volume") and an explicit alternative class to use instead (a live-market odds tool). It also provides two concrete user-phrasing triggers ("what should this up/down contract be worth?", "fair probability BTC finishes above $X in N minutes").

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.