Skip to main content
Glama
draftkingsapi-mcp

draftkingsapi-mcp

Sportsbook price history

get_odds_history
Read-onlyIdempotent

Retrieve earlier captured DraftKings Sportsbook mainline quotes and capture times to chart how a price moved; use pagination and check coverage for start dates.

Instructions

Earlier captured DraftKings Sportsbook mainline quotes for an event or offer, each with its capture time, to chart how a price moved. Captures are periodic, not a complete open-to-close tape; check get_history_coverage for start dates. For the current price use get_odds. Paginate with cursor. Needs DRAFTKINGS_API_KEY (free key, no card, at https://draftkingsapi.com/sign-up); billed per row, see get_credit_costs.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_odds_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskNoOptional, never a filter: the user's task in one plain sentence, with no personal data or secrets. Logged for 35 days to guide what the API builds next.
limitNoRows to return, 1 to 100. Smaller pages cost fewer credits.
sportNoSport code in upper case, for example NFL, NBA, NHL, MLB, NCAAF, NCAAB, SOCCER. Omit for every sport.
cursorNoOpaque pagination.next_cursor from the previous page, passed unchanged. Omit for the first page.
marketNomoneyline, spread or total.
event_idNoOne event's event_id, from get_sportsbook_events or a previous row.
offer_idNoOne offer's offer_id from a get_odds row, to follow a single market.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedInput schema / properties / cursor / description
      Previous value: -"pagination.next_cursor from the previous page, unchanged."New value: +"Opaque pagination.next_cursor from the previous page, passed unchanged. Omit for the first page."
    • addedInput schema / properties / event_id / description
      Added value: +"One event's event_id, from get_sportsbook_events or a previous row."
    • changedInput schema / properties / limit / description
      Previous value: -"Rows to return, at most 100."New value: +"Rows to return, 1 to 100. Smaller pages cost fewer credits."
    • addedInput schema / properties / market / description
      Added value: +"moneyline, spread or total."
    • addedInput schema / properties / offer_id / description
      Added value: +"One offer's offer_id from a get_odds row, to follow a single market."
    • changedInput schema / properties / sport / description
      Previous value: -"Sport code in upper case, for example NFL, NBA, NHL, MLB, NCAAF, NCAAB, SOCCER."New value: +"Sport code in upper case, for example NFL, NBA, NHL, MLB, NCAAF, NCAAB, SOCCER. Omit for every sport."
    • changedInput schema / properties / task / description
      Previous value: -"Optional: the user's task in one plain sentence, nothing personal. Helps the API return what fits."New value: +"Optional, never a filter: the user's task in one plain sentence, with no personal data or secrets. Logged for 35 days to guide what the API builds next."
  2. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses the key limitation that captures are periodic rather than a complete open-to-close tape — a caveat that materially changes how results should be interpreted. It also adds auth requirements, a sign-up path, and per-row billing, which annotations cannot express.

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?

Four tight sentences, front-loaded with purpose and scope, then alternatives, then the coverage caveat, then operational requirements. No sentence is filler; even the sign-up URL and billing pointer are load-bearing for a first-time caller.

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 7-parameter read tool with no output schema, the description covers what is returned (quotes plus capture time), pagination, the completeness caveat, auth, cost, and sibling alternatives. Nothing an agent needs to call it correctly 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 description coverage is 100%, so every parameter is already documented in detail. The description only adds the framing 'for an event or offer' (hinting event_id vs offer_id selection) and repeats the cursor pagination rule, so the 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?

States a specific verb and resource — earlier captured DraftKings mainline quotes for an event or offer, with capture times, for charting price movement — and immediately contrasts itself with get_odds for current prices. An agent can distinguish it from siblings 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 Guidelines5/5

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

Explicitly routes to get_odds for current prices and to get_history_coverage for start dates, plus tells the agent to paginate with cursor. It also states prerequisites (DRAFTKINGS_API_KEY, free sign-up) and that billing is per row with costs in get_credit_costs, so the when and how-not are both covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.