Skip to main content
Glama

prediction_market

Read-onlyIdempotent

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

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

Beyond the read-only and idempotent annotations, the description explains the response contents, the conditional inclusion of my_position when an agent key is present, and the derived expected_odds_pct formula from the multiplier. This provides meaningful behavioral context for a tool without an output schema.

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?

The description is front-loaded with the main purpose, then follows with conditional behavior and the key pre-bet usage. It is dense but every sentence contributes task-relevant information without filler.

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?

For a simple one-parameter read-only tool with no output schema, the description covers what is returned, how my_position is conditionally added, and when to use it before betting. An agent has enough information to invoke it correctly in the relevant workflow.

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?

The schema already fully documents the single market_id parameter with 100% coverage, so the description does not need to repeat parameter syntax. It adds no additional parameter-level meaning beyond indicating that the tool operates on one market, so the high-coverage baseline of 3 applies.

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 clearly states that this tool returns one prediction market in full, listing odds, pools, caps, close and resolve times, resolution source, and recent bets. It distinguishes itself from the sibling list tool prediction_markets and from prediction_place_bet by describing a single-market read.

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 explicit timing and purpose: read this right before prediction_place_bet on a fixed_odds market to obtain current yes_multiplier/no_multiplier and line_version. It also notes that an agent key adds my_position, clarifying a conditional usage context.

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.