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. Edge cases: currentPrice, referencePrice, minutesToClose and volatilityPct (annualized) above zero; riskFreeRatePct 0 to 100 (default 0); the volatility is yours, nothing is estimated; a year is 365 days. The result is the probability at the close only, not of touching the level before it. Not covered: first-passage (touch) probability, volatility that changes, jumps, the venue fees, order book prices, and the exact settlement rule of the venue. Use when user asks "what does the N(d2) model give for this up/down contract?" or "what's the model 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).

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": {
      "currentPrice": "<currentPrice>",
      "referencePrice": "<referencePrice>",
      "minutesToClose": "<minutesToClose>",
      "volatilityPct": "<volatilityPct>"
    },
    "name": "workflow.run_window_fair_value"
  }
}

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.5/5.0
Behavior5/5

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

Annotations already establish readOnly, non-destructive, closed-world, so the description is free to spend its words on model semantics, and it does: closed-form N(d2), close-time probability only (not touch), 365-day year, required manual volatility with no live implied-vol source, and an explicit "Not covered" list (first passage, stochastic vol, jumps, fees, order book, venue settlement rule). That is exactly the context an agent needs to know when the returned number is inapplicable.

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?

The content is front-loaded and the constraint/edge-case block is useful, but the description repeats itself: "probability at the close only, not touching before" appears twice and "a year is 365 days" appears twice. A single parenthetical would carry both, so the length is somewhat self-inflicted rather than purely informational.

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?

With no output schema, the description takes on the job of enumerating returns (d1, d2, probAbovePct, probBelowPct, fairPriceAboveCents, fairPriceBelowCents) and notes the cents convention is directly comparable to venue quotes. Combined with the input bounds and the explicit non-coverage list, nothing an agent needs to call or interpret this model is missing.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning: volatilityPct is annualized and must be supplied by the caller because nothing is estimated, riskFreeRatePct defaults to 0 and is negligible at these horizons, and it states positive-value bounds for currentPrice, referencePrice, minutesToClose and volatilityPct plus a 0–100 range for riskFreeRatePct, which the schema does not encode.

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?

The description names a specific instrument (time-windowed crypto up/down contract), a specific model (cash-or-nothing digital priced with N(d2)), and the exact output family (probAbovePct, fairPriceAboveCents). It explicitly marks the boundary against a touch/first-passage payoff, which separates it from run_barrier_touch and from the live-odds tools in the sibling list.

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

Usage Guidelines4/5

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

It gives a clear selection rule: use this when there is no live market price to read (e.g. a venue has real contract terms but zero volume) rather than a live-market odds tool, and it supplies two example user phrasings. The gap is that it describes the alternative generically as "a live-market odds tool" instead of naming the sibling (e.g. run_market_implied_odds), which would make routing unambiguous in a 90-tool namespace.

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.