Skip to main content
Glama

prediction-market-tools

calculate_kelly_position_size

Read-onlyIdempotent

Calculate full, half, and quarter Kelly Criterion position sizes for a binary prediction market contract given bankroll, market price, and estimated true probability.

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": {
      "bankroll_usd": "<bankroll_usd>",
      "contract_price_cents": "<contract_price_cents>",
      "estimated_win_probability_pct": "<estimated_win_probability_pct>"
    },
    "name": "calculate_kelly_position_size"
  }
}

Input Schema

NameRequiredDescriptionDefault
bankroll_usdYesTotal bankroll in USD.
max_position_pctNoRisk cap as a percent of bankroll (default 25%).
contract_price_centsYesContract purchase price in cents (1-99).
estimated_win_probability_pctYesYour estimated probability that the contract settles at $1.00 (1-99).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety and purity are covered. The description adds that three sizing tiers are produced for a contract that settles at $1.00, which is real context, but it does not disclose how a non-positive Kelly value or the max_position_pct cap affects the output.

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?

A single front-loaded sentence with no redundant or filler wording; the key scope (three Kelly variants, binary market) comes first.

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 read-only, deterministic calculator with fully documented parameters and no output schema, the description is nearly sufficient, implicitly naming the three returned values. A brief note on output units and negative-edge behavior would close the remaining gap.

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

Parameters3/5

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

Schema description coverage is 100%, so all four parameters are already documented in the schema, including bounds and the max_position_pct default. The description restates the three required inputs and does not mention the optional risk-cap parameter or the payout convention beyond what the schema says, so it adds little beyond baseline.

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?

States a specific verb (Calculate), a specific resource (Kelly Criterion position sizes), the exact variants returned (full, half, quarter), and the domain (binary prediction market contract). An agent can distinguish this from calculate_implied_probability_and_edge or compare_binary_market_payouts 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 Guidelines2/5

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

It names the inputs needed (bankroll, market price, estimated true probability), which implies the use case, but never states when to reach for this tool versus the sibling edge/implied-probability calculator, nor any when-not conditions (e.g. negative Kelly or no edge).

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