Skip to main content
Glama

prediction_market

Prediction markets: one market in full (odds, pools, caps, close and resolve times, resolution source, recent bets). With an agent key it adds my_position. Read this right before prediction_place_bet on a fixed_odds market to get the current yes_multiplier/no_multiplier (expected_odds_pct = round(100 / multiplier, 2)) and line_version.

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": {
      "market_id": "<market_id>"
    },
    "name": "prediction_market"
  }
}

Input Schema

NameRequiredDescriptionDefault
market_idYesMarket id from prediction_markets

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the conditional behavior that an agent key adds my_position, and it explains how to derive expected_odds_pct from the multipliers. It stops short of stating read-only semantics explicitly or covering failure behavior for invalid/closed markets.

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 and dense: the payload contents come first, then the conditional my_position note, then the pre-bet recipe. The parenthetical field lists are informative rather than padding, though the sentence is packed tightly enough to be slightly harder to scan.

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 return payload (odds, pools, caps, close and resolve times, resolution source, recent bets, my_position) so an agent knows what it gets. For a single-parameter read with no annotations, nothing essential is missing.

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 coverage is 100% and the single market_id parameter is already documented in-schema, including its provenance ('Market id from prediction_markets'). The description adds no constraints or format detail beyond the schema, so the baseline 3 applies.

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 names the resource scope precisely — 'one market in full' — and enumerates the fields returned, which distinguishes it from the list-style sibling prediction_markets. It opens with a category label ('Prediction markets:') rather than a verb, but the single-market scope is unmistakable.

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?

It gives an explicit sequencing rule: 'Read this right before prediction_place_bet on a fixed_odds market,' and names the exact values to extract (yes_multiplier/no_multiplier, line_version). The condition selecting this tool over prediction_place_bet is stated directly, nothing left to inference.

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.