Skip to main content
Glama

Market odds

get_market_odds
Read-onlyIdempotent

Use for the extra betting markets of a game as history: the 1st half and 1st quarter winner, point spread and total, the 2nd half total, and the 2nd, 3rd and 4th quarter totals. Pass game_id (from get_schedule or get_games) and market. For each sportsbook it returns the opening line (the first one we captured) and the closing line (the last one before the game started), each as the list of outcomes with their point and American price, plus captured_at and minutes_before_start (negative when the last capture came after our scheduled start, which the sportsbooks' listed start can run past). Most books were captured once, so opening and closing are often the same line. Held from the 2023 season for the larger sportsbooks only; not every game has every market. Each game's lines are added the morning after it is played. Costs 10 credits a call; a game with no lines is refunded. Set estimate_only to get the price without being charged. For the full-game moneyline, spread and total use get_odds. Prices are market information; no tool places, accepts or tracks wagers.

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": {
      "game_id": "<game_id>",
      "market": "<market>"
    },
    "name": "get_market_odds"
  }
}

Input Schema

NameRequiredDescriptionDefault
marketYesThe market: h2h_h1 (1st half winner), spreads_h1 (1st half point spread), totals_h1 (1st half total points), h2h_q1 (1st quarter winner), spreads_q1 (1st quarter point spread), totals_q1 (1st quarter total points), totals_q2 (2nd quarter total points), totals_q3 (3rd quarter total points), totals_q4 (4th quarter total points), totals_h2 (2nd half total points)
game_idYesGame id from get_schedule or get_games.
bookmakerNoOne bookmaker key, e.g. draftkings, fanduel, pinnacle.
estimate_onlyNoReturn what this call would cost, without charging or running it.

Output Schema

NameRequiredDescriptionDefault
noteNo
toolNo
booksYes
countYes
labelYes
marketYes
creditsNo
game_idYes
estimate_onlyNo
scheduled_startYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnly/idempotent/non-destructive and closed-world, so the safety bar is lower, but the description still adds substantial behavior the annotations cannot convey: opening line = first capture, closing = last capture before start, captured_at and minutes_before_start with the negative-value caveat, the 'most books captured once so lines often match' quirk, a 10-credit cost with refund when no lines exist, and the estimate_only free-preview path. It notably omits the bookmaker parameter entirely, leaving per-book filtering behavior to the schema.

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 purpose in the first clause, then progressively adds cost, coverage and capture semantics; nearly every sentence carries distinct information (cost, refund, capture cadence, negative minutes_before_start, wagering disclaimer). It is long for a single unbroken paragraph but not padded.

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?

Output schema exists, so return shape need not be described, and the description still explains what the returned lines mean (outcomes with point and American price, captured_at, minutes_before_start). The only real gap is not telling the agent anything about the bookmaker filter or what happens when multiple books are returned; otherwise it covers cost, availability and data recency.

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 the schema already documents game_id provenance, the market enum, bookmaker, and estimate_only; the description's restatement of game_id sources adds little. The credit-cost framing does give estimate_only ('get the price without being charged') real meaning beyond the schema's neutral wording, but the unused bookmaker parameter is never explained.

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-and-resource ('Use for the extra betting markets of a game as history') and then enumerates exactly which markets (1st half/quarter winner, spreads, totals, 2nd half, quarters 2-4). It explicitly distinguishes itself from get_odds, which handles the full-game moneyline/spread/total, so an agent can route without opening either schema.

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?

Gives the selection rule both ways: use this for extra markets, use get_odds for full-game lines. It also names where game_id comes from (get_schedule or get_games) and states the prerequisites/limits (larger sportsbooks only, from the 2023 season, not every game has every market, lines appear the morning after the game).

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.