Skip to main content
Glama

prediction-market-tools

calculate_implied_probability_and_edge

Read-onlyIdempotent

Convert binary prediction market YES/NO contract prices into implied probability, vig/overround, expected value (EV) per dollar, and edge against your own probability estimate.

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": {
      "yes_price_cents": "<yes_price_cents>",
      "estimated_true_probability_pct": "<estimated_true_probability_pct>"
    },
    "name": "calculate_implied_probability_and_edge"
  }
}

Input Schema

NameRequiredDescriptionDefault
stake_usdNoHypothetical stake in USD (default 100).
no_price_centsNoOptional NO share price in cents (defaults to 100 - yes_price_cents).
yes_price_centsYesYES share price in cents (e.g., 62 for $0.62).
estimated_true_probability_pctYesYour own estimated true probability percentage (e.g., 72 for 72%).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds real value by naming the four computed outputs (implied probability, vig/overround, EV per dollar, edge), but it does not describe units, sign convention for negative edge, or how vig is derived when the NO price is omitted — details an agent would want before relying on the result.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One sentence, front-loaded with the action and the input class, then the outputs in a compact list. No filler, no restating of the tool name, nothing to trim.

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

Completeness4/5

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

For a pure, side-effect-free computation with no output schema, the description covers both the required inputs and the set of returned metrics, which is the main thing an agent needs to decide to call it. It falls short only on output formatting/units and on how the optional NO price affects the vig and EV results.

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, and the description does add meaning by tying the price inputs to the YES/NO contract concept and by framing estimated_true_probability_pct as 'your own probability estimate' — clarifying that it is a user-supplied belief, not a market-derived value. With the schema doing the numeric-range work, that framing is a modest but genuine addition beyond the baseline.

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 ('Convert') and a specific resource ('binary prediction market YES/NO contract prices') and enumerates what is produced: implied probability, vig/overround, EV per dollar, and edge. An agent can tell this is a pure pricing/EV calculator, distinguishable in kind from siblings like calculate_kelly_position_size or compare_binary_market_payouts, though it never names those alternatives.

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?

Usage is only implied: the phrase 'edge against your own probability estimate' signals you must bring an independent probability, but there is no explicit when-to-use, when-not-to-use, or pointer to the Kelly/payout siblings for downstream steps. For a self-contained calculator the implied usage is largely sufficient, but nothing is stated about alternatives.

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.

Resources