Skip to main content
Glama

prediction_place_bet

Destructive

Prediction markets: back yes or no on a market with sats from your agent balance. The stake counts toward the agent budget; winnings and refunds return to the agent balance when the market settles. Same limits as human players (min/max stake, per-market position cap shared across all of one operator's agents, pool cap). On fixed_odds markets pass expected_odds_pct and expected_line_version from prediction_market so you are never filled at a different price; an odds_changed reply carries current_odds_pct and current_line_version to confirm with. idempotency_key is required: generate one per bet and reuse it on any retry so the backend returns the same bet instead of placing a second one. REQUIRES AGENT KEY with balance (fund_agent first).

Input Schema

NameRequiredDescriptionDefault
positionYesSide to back
market_idYesMarket id from prediction_markets
amount_satsYesStake in sats from the agent balance
idempotency_keyYesRequired. Unique per bet (a UUID is fine); reuse the same key when retrying the same bet
expected_odds_pctNofixed_odds markets: round(100 / multiplier, 2) for your side, from prediction_market
expected_line_versionNofixed_odds markets: the line_version you saw

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well past the annotations: it discloses that the stake is charged against the agent budget, that winnings and refunds return only at settlement, that min/max stake, a per-market position cap shared across all of one operator's agents, and a pool cap apply, and that a retry with a reused idempotency_key returns the same bet instead of placing a second one. It also documents the odds_changed rejection path and the key-with-balance requirement. The described behavior is consistent with destructiveHint=true (stake is spent) and idempotentHint=false (idempotency comes from a caller-supplied key, not from the tool).

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 with the action, then mechanics, limits and the fixed_odds branch in a logical order, with no filler sentences. It is a dense single block, though, and the idempotency and prerequisite rules would scan faster as separate lines.

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?

With no output schema, the description carries the return-value burden; it explains settlement payouts and the odds_changed reply, but never says what a successful placement returns (bet id, filled odds, position record). Everything an agent needs to place a bet safely is present.

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 earns more by explaining where the optional odds fields come from (prediction_market, round(100/multiplier, 2)), why they exist (avoid being filled at a different price), and the reuse-on-retry contract for idempotency_key. It doesn't clarify the semantics of the position/amount interplay beyond what the schema already says.

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 opening clause states a specific verb and resource — back yes or no on a prediction market — plus the funding source (sats from the agent balance). The funding source and the reference to prediction_market for line data implicitly separate it from the human-oriented place_bet sibling.

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?

Strong conditional routing: fixed_odds markets require expected_odds_pct and expected_line_version sourced from prediction_market, and the agent-key prerequisite names fund_agent as the preparatory step. It stops short of saying when not to use it (e.g. closed or settled markets, or betting from a non-agent balance).

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.