Documentation/Guides
MCP tools | Baseball Data API
MCP toolsEvery tool, what it does, and the call behind it.
| Tool | What it does | Calls | Plan |
|---|---|---|---|
my_usage | Your key's plan, calls today, limits, when they reset, and the days your plan can read. Not counted against your allowance. | /v1/usage | Free key |
list_leagues | Every league we hold, with its seasons and how many of its games carry each part of the record. | /v1/leagues | Free key |
find_games | Games in a league on a day or across a range of days, with final scores. Takes: league, date, from, to, per_page | /v1/{league}/games | Free key |
get_game | One game with its line score, the weather at the ground and the umpires, where held. Takes: league, id | /v1/{league}/games/{id} | Free key |
yesterdays_results | Every finished game from yesterday in every league, newest league first. | /v1/results/yesterday | Free key |
find_parks | Every major-league ground held, with its first and last game; or the grounds used in one season. Takes: season, per_page | /v1/parks | Free key |
get_park | One ground, and season by season its games, runs per game and park factor. Takes: id | /v1/parks/{id} | Free key |
find_players | Find people in the US majors and Negro Leagues by name: players, managers, coaches and umpires. Takes: name, per_page | /v1/players | Free key |
get_player | One person: names, birth and death, bats and throws, height and weight, and each role with its dates. Takes: id | /v1/players/{id} | Free key |
get_boxscore | Batting and pitching lines for both sides of one game, where held. Takes: league, id | /v1/{league}/games/{id}/boxscore | Free key |
get_plays | Every plate appearance of one game in order, with the pitches where they were recorded. Takes: league, id | /v1/{league}/games/{id}/plays | Free key |