Skip to main content
Glama

sports-odds-api

Fetches sports betting odds from Pinnacle, DraftKings, ESPN and Kalshi, then calculates arbitrage and value bets across bookmakers for NFL, NBA, MLB, soccer and other leagues.

Instructions

Sports Betting Odds API β€” Pinnacle, DraftKings & Arbitrage. Moneyline, spread and total odds per book β€” Pinnacle sharp lines with the risk limit it accepts, DraftKings, Kalshi β€” plus arbitrage and value bets calculated across books, opening lines, props and futures. NFL, NBA, MLB, NHL, college, soccer, UFC, tennis. No API key.

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": "sports-odds-api"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo🧭 What to get β€” Odds β€” moneyline, spread and total for every game, per book, with opening lines and movement. Props β€” player and game props from DraftKings for every game. Futures β€” championship, division, award and season-win markets. Prediction markets β€” Kalshi game contracts with traded probabilodds
booksNoπŸ“š Sources β€” Pinnacle β€” the sharp reference book the rest of the market prices against, with the risk limit it will accept on each market. DraftKings β€” live prices straight from the sportsbook feed. ESPN β€” every provider ESPN carries for the game (DraftKings, Bet365 where present) with opening lines
dateToNoπŸ“… To date β€” YYYY-MM-DD, UTC. Optional; at most 60 days after the start.
leaguesNoπŸ† Leagues β€” One or more leagues. Odds, props and Kalshi contracts are matched game by game. For a league that is not in this list, put its ESPN path (for example soccer/eng.2) in Custom leagues below.
marketsNoπŸ“Š Markets β€” Odds mode: which game lines to output. Spread is the run line in MLB and the puck line in NHL; soccer moneylines carry a draw price.
dateFromNoπŸ“… From date β€” YYYY-MM-DD, UTC. Optional. Games are kept by their kick-off time in UTC.
eventIdsNo🎯 Only these games β€” ESPN event ids (the eventId field of any row, or the number in an ESPN game URL). Leave empty for every game in the date range.
maxItemsNoπŸ’― Maximum rows β€” Stop after this many rows in the run. The default of 18 keeps a first trial run at about $0.05 β€” raise it once you like the output.
daysAheadNoπŸ“… Days ahead β€” Games from today (UTC) up to this many days ahead (ignored when dates are set below). 0 = today only.
oddsFormatNoπŸ”’ Odds format β€” How the homePrice/awayPrice/overPrice… fields are written. Decimal odds and implied probabilities are always included as separate fields.american
concurrencyNoParallel requests β€” How many requests run at once.
includeEdgesNoπŸ’° Find arbitrage and value bets β€” Adds edge rows on top of the prices: arbitrage β€” the best price on each side, taken from whichever book offers it, when together they guarantee a profit; value β€” a book paying more than Pinnacle’s vig-free probability says the outcome deserves. Needs at least two s
kalshiSeriesNo🎲 Kalshi series tickers β€” Prediction-markets mode: series tickers to pull directly, e.g. KXNFLGAME, KXUCLGAME, KXATPMATCH. Leagues selected above are added automatically.
outputFormatNo🧱 Row layout β€” Flat β€” one row per game Γ— market Γ— book, spreadsheet-friendly. Nested β€” one row per game with all books inside and the best price per outcome.flat
customLeaguesNoCustom leagues (ESPN paths) β€” Any ESPN league path not in the list above, e.g. soccer/eng.2 (Championship), soccer/ger.2, basketball/nbl. The game list comes from ESPN; DraftKings, Pinnacle and Kalshi prices are added when they carry that league.
minEdgePercentNoπŸ“‰ Smallest edge worth reporting, % β€” Prices move by a tick constantly, so anything under half a percent is noise a bettor would pay away in the spread. Raise it to see only the big disagreements.
propCategoriesNoπŸ§‘β€πŸ€β€πŸ§‘ Prop categories β€” Props mode: keep only categories whose name contains one of these, e.g. Passing, TD Scorers, Points, Batter. Empty = every player and game prop category (this can be thousands of rows per game).
includeFinishedNo🏁 Include finished games β€” Odds mode: keep games that are already final (closing lines, if a source still carries them). Prediction-markets mode: keep settled contracts.
maxPropsPerGameNoProps per game cap β€” Stop after this many prop rows for one game.
futuresCategoriesNoπŸ† Futures categories β€” Futures mode: keep only categories whose name contains one of these, e.g. Futures, Awards, Wins, Playoffs. Empty = every futures-type category.
includeRunSummaryNo🧾 Add a free summary row at the end of the run β€” One extra free row with the run's totals: rows delivered, free rows, what was charged and how much in US dollars. It carries type "notice", so a filter on your data rows skips it.
proxyConfigurationNoProxy configuration β€” Not needed: every source answers Apify's own servers directly. Set only if a source starts refusing. Leave it off unless a source starts refusing you: DraftKings answers Apify's own servers but blocks datacenter proxies, so switching the proxy on can cost you its prices rather
includeOpeningLinesNoπŸ“ˆ Opening lines and movement β€” Fetch the opening line and price for each game (one extra request per game) and compute how far the line and prices have moved.
includeAlternateLinesNoβž• Alternate spreads and totals β€” Add DraftKings' alternate lines as extra rows (market alternate-spread / alternate-total).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden and it does contribute real behavioral detail: the sharp-book framing of Pinnacle with its accepted risk limit, per-book sourcing, arbitrage/value derivation across books, and the no-API-key auth model. However, it omits material behavior for an agent to plan around β€” that this is a metered, per-row charged run with a default 18-row trial cap, that arbitrage requires at least two books, and that proxy settings can silently drop DraftKings prices. Those facts appear only in parameter descriptions.

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?

For a 24-parameter tool the description is compact and front-loaded: the resource and book coverage come first, then data types, then the sport list. It is dense and slightly list-like toward the end ('NFL, NBA, MLB, NHL, college, soccer, UFC, tennis'), but no sentence is redundant and nothing is buried at the tail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 24 optional parameters, no annotations and no output schema, the description should at minimum orient the agent on the run's shape and cost; instead the metering model, the flat-vs-nested row layouts and the run-summary notice row exist only in the schema. It does cover the domain, sources and derived outputs (arbitrage, value, opening lines) adequately. Adequate but with a clear gap around result shape and cost.

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% across 24 parameters, so the schema already documents every field including modes, book enums, date bounds, row caps and edge thresholds. The description adds no additional parameter meaning β€” it does not explain how modes interact with markets, books or includeEdges beyond what the schema text states. Baseline 3 is correct when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific resource (sports betting odds) and enumerates the concrete content it returns: moneyline, spread and total odds per book, from Pinnacle, DraftKings and Kalshi, plus arbitrage and value bets, opening lines, props and futures. An agent can tell this is an odds/line-aggregation tool rather than a scores tool like the sibling tennis-scores-api. It reads somewhat as a keyword-stuffed title block rather than a verb-first statement of what the call does, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is only implied by enumeration of the domains (NFL, NBA, MLB, NHL, college, soccer, UFC, tennis) and data types it covers; there is no explicit when-to-use or when-not-to-use guidance, and no alternative tool is named. The one practical usage note is 'No API key', which tells the agent no credential setup is required. The real mode-selection logic (odds vs props vs futures vs prediction-markets) lives exclusively in the schema, not the description.

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