Skip to main content
Glama
draftkingsapi-mcp

draftkingsapi-mcp

Lines across books

get_compare_books
Read-onlyIdempotent

Compares every upcoming DraftKings market with Novig fair odds, FanDuel and other books, showing price per side, EV percent and line gap so you can shop one line across sportsbooks.

Instructions

Every upcoming DraftKings market that another venue also lists: DraftKings price per side, the Novig exchange fair probability on the same line, DraftKings EV percent against it, FanDuel and other sportsbook prices, the PrizePicks line with line_gap, and the best price per side. Recomputed about once a minute, pregame only. Use it to shop one line across books; get_ev ranks only +EV prices, get_arbitrage only guaranteed-profit pairs. 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_compare_books"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNostart (soonest game first, default) or ev (best DraftKings EV first).
statNoCanonical stat slug, for example points, rebounds, passing_yards, shots_on_goal.
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.
teamNoPart of a team name or abbreviation.
limitNoRows to return, 1 to 200. Smaller pages cost fewer credits.
leagueNoLeague code, for example NBA, NFL, NHL, NCAAF, NCAAB, MLB, EPL. Omit for every league.
min_evNoOnly rows where a DraftKings side has at least this EV, in percent.
offsetNoRows to skip for the next page (0 for the first page).
playerNoPart of a player name, case-insensitive.
with_fairNotrue: only rows with a Novig fair price; false: only rows without one.
market_typeNoMarket family. Omit for all four.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • addedInput schema / properties / league / description
      Added value: +"League code, for example NBA, NFL, NHL, NCAAF, NCAAB, MLB, EPL. Omit for every league."
    • changedInput schema / properties / limit / description
      Previous value: -"Rows to return, at most 200."New value: +"Rows to return, 1 to 200. Smaller pages cost fewer credits."
    • addedInput schema / properties / market_type / description
      Added value: +"Market family. Omit for all four."
    • addedInput schema / properties / min_ev
      Added value: +{
      +  "description": "Only rows where a DraftKings side has at least this EV, in percent.",
      +  "type": "number"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Rows to skip for the next page (0 for the first page).",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / player / description
      Added value: +"Part of a player name, case-insensitive."
    • addedInput schema / properties / sort
      Added value: +{
      +  "description": "start (soonest game first, default) or ev (best DraftKings EV first).",
      +  "enum": [
      +    "start",
      +    "ev"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / stat / description
      Added value: +"Canonical stat slug, for example points, rebounds, passing_yards, shots_on_goal."
    • 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."
    • addedInput schema / properties / team / description
      Added value: +"Part of a team name or abbreviation."
    • addedInput schema / properties / with_fair / description
      Added value: +"true: only rows with a Novig fair price; false: only rows without one."
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds real behavior: 'Recomputed about once a minute, pregame only,' a required DRAFTKINGS_API_KEY with a sign-up URL, and 'billed per row' with a pointer to get_credit_costs. That is cost, freshness, and scope disclosure beyond the annotations.

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?

Structure is front-loaded and efficient: returned data first, then cadence, then routing to siblings, then prerequisites. The long mid-sentence column enumeration is the only heaviness, but with no output schema those fields are the description's main value, so it earns its space.

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 an 11-parameter, zero-required, no-output-schema read tool, the description supplies what the structured fields cannot: the return shape, refresh cadence, pregame-only restriction, auth requirement, and billing model. Nothing an agent needs to call it correctly appears 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%, with sort and market_type enums documented inline, so the schema carries the parameter burden and baseline 3 applies. The description adds only indirect hints (per-row billing relates to limit/offset, 'EV percent' relates to min_ev) rather than explicit semantics for any of the 11 parameters.

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 names a specific resource and scope: 'Every upcoming DraftKings market that another venue also lists,' then enumerates exactly the columns returned (DK price per side, Novig fair probability, EV percent, FanDuel/other books, PrizePicks line with line_gap, best price). An agent can distinguish this from get_ev and get_arbitrage without opening any 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?

Explicit when-to-use ('shop one line across books') plus named alternatives with the condition that selects them: get_ev 'ranks only +EV prices,' get_arbitrage 'only guaranteed-profit pairs.' Exclusions are stated, not inferred, and the key/billing prerequisites are given up front.

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