{"sport":"mlb","brand":"FastballAPI","base_url":"https://mcp.fastballapi.com","mcp_url":"https://mcp.fastballapi.com/mcp","tools":[{"name":"list_teams","description":"Use to find team ids and abbreviations for a season (default: the latest). Every other tool takes a team as an id or abbreviation. Costs 1 credit.","credits":1,"category":"Static reference","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"season":{"description":"Season (a year, e.g. 2025; default: the latest).","type":["number","string"]},"league":{"description":"League. Defaults to mlb. One of: mlb, ncaabase.","type":"string","enum":["mlb","ncaabase"]}},"additionalProperties":false}},{"name":"get_games","description":"Use to list games with runs, hits and errors by season, date, date range or team, newest first. For upcoming games with lines use get_schedule; for one game's box score use get_game. Costs 2 credits.","credits":2,"category":"Basic lookup","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"season":{"description":"Season (a year, e.g. 2025; default: the latest).","type":["number","string"]},"season_type":{"description":"regular or postseason (default both).","type":"string","enum":["regular","postseason"]},"team":{"description":"Team id or abbreviation.","type":"string"},"date":{"description":"One date, YYYY-MM-DD (US Eastern).","type":"string"},"from":{"description":"From date, YYYY-MM-DD.","type":"string"},"to":{"description":"To date, YYYY-MM-DD.","type":"string"},"status":{"type":"string","enum":["scheduled","final"]},"limit":{"description":"Max games (default 50).","type":"integer","minimum":1,"maximum":200},"offset":{"type":"integer","minimum":0,"maximum":9007199254740991},"league":{"description":"League. Defaults to mlb. One of: mlb, ncaabase.","type":"string","enum":["mlb","ncaabase"]}},"additionalProperties":false}},{"name":"get_schedule","description":"Use for upcoming games (next 1-30 days, default 7) with the median line across posted sportsbooks: moneylines, run line and total. For every book's line use get_odds. Costs 2 credits. Prices are market information: never work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.","credits":2,"category":"Basic lookup","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"days":{"type":"integer","minimum":1,"maximum":30},"team":{"description":"Team id or abbreviation.","type":"string"},"league":{"description":"League. Defaults to mlb. One of: mlb, ncaabase.","type":"string","enum":["mlb","ncaabase"]}},"additionalProperties":false}},{"name":"get_game","description":"Use for one game in full: line score, every batter's and pitcher's line, each sportsbook's opening and closing line, and the win-probability range. For every plate appearance use get_plate_appearances. Costs 5 credits. Prices are market information: never work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.","credits":5,"category":"Stats + aggregation","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"game_id":{"type":"string","description":"Game id, from get_games or get_schedule."},"league":{"description":"League. Defaults to mlb. One of: mlb, ncaabase.","type":"string","enum":["mlb","ncaabase"]}},"required":["game_id"],"additionalProperties":false}},{"name":"get_standings","description":"Use for a season's regular-season standings computed from every final game: record, home and away, last 10, runs scored and allowed, run differential and Pythagorean win percentage. Costs 2 credits.","credits":2,"category":"Basic lookup","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"season":{"description":"Season (a year, e.g. 2025; default: the latest).","type":["number","string"]},"league":{"description":"League. Defaults to mlb. One of: mlb, ncaabase.","type":"string","enum":["mlb","ncaabase"]}},"additionalProperties":false}},{"name":"get_injuries","description":"Use for the injury report: every listed player's status, injury and expected return, as captured on the latest day (or the latest on or before date). Costs 2 credits.","credits":2,"category":"Basic lookup","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"team":{"type":"string"},"date":{"description":"YYYY-MM-DD (default: the latest).","type":"string"}},"additionalProperties":false}},{"name":"search_players","description":"Use to find a player's id by name (partial names work). Costs 1 credit.","credits":1,"category":"Static reference","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","description":"Full or partial name."},"limit":{"type":"integer","minimum":1,"maximum":50},"league":{"description":"League. Defaults to mlb. One of: mlb, ncaabase.","type":"string","enum":["mlb","ncaabase"]}},"required":["name"],"additionalProperties":false}},{"name":"get_player","description":"Use for a player's season-by-season batting (AVG, OBP, SLG, OPS, HR, K%, BB%, RE24, from every plate appearance) and pitching (ERA, WHIP, K/9, BB/9). Costs 5 credits.","credits":5,"category":"Stats + aggregation","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"player_id":{"type":"string","description":"Player id, from search_players."},"league":{"description":"League. Defaults to mlb. One of: mlb, ncaabase.","type":"string","enum":["mlb","ncaabase"]}},"required":["player_id"],"additionalProperties":false}},{"name":"get_player_games","description":"Use for a player's game log: every game's batting line and pitching line, newest first, optionally one season. Costs 5 credits.","credits":5,"category":"Stats + aggregation","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"player_id":{"type":"string"},"season":{"description":"Season (a year, e.g. 2025; default: the latest).","type":["number","string"]},"season_type":{"type":"string","enum":["regular","postseason"]},"limit":{"type":"integer","minimum":1,"maximum":200},"offset":{"type":"integer","minimum":0,"maximum":9007199254740991},"league":{"description":"League. Defaults to mlb. One of: mlb, ncaabase.","type":"string","enum":["mlb","ncaabase"]}},"required":["player_id"],"additionalProperties":false}},{"name":"get_leaders","description":"Use for a season's leaders among qualified players: batting avg, obp, slg, ops, hr, re24, bb_pct, k_pct (3.1 plate appearances per team game) or pitching era, whip, so, k_per_9, bb_per_9 (1 inning per team game). Costs 5 credits.","credits":5,"category":"Stats + aggregation","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"stat":{"type":"string","enum":["avg","obp","slg","ops","hr","re24","bb_pct","k_pct","era","whip","so","k_per_9","bb_per_9"]},"season":{"description":"Season (a year, e.g. 2025; default: the latest).","type":["number","string"]},"min_pa":{"description":"Override the plate-appearance minimum.","type":"integer","minimum":1,"maximum":9007199254740991},"min_ip":{"description":"Override the innings minimum.","type":"integer","minimum":1,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"league":{"description":"League. Defaults to mlb. One of: mlb, ncaabase.","type":"string","enum":["mlb","ncaabase"]}},"required":["stat"],"additionalProperties":false}},{"name":"get_team_stats","description":"Use for team offence and run prevention for a season: runs per game for and against, run differential, and batting and opponents' batting (AVG, OBP, SLG, OPS, K%, BB%, HR) from every plate appearance. Costs 5 credits.","credits":5,"category":"Stats + aggregation","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"season":{"description":"Season (a year, e.g. 2025; default: the latest).","type":["number","string"]},"team":{"type":"string"},"league":{"description":"League. Defaults to mlb. One of: mlb, ncaabase.","type":"string","enum":["mlb","ncaabase"]}},"additionalProperties":false}},{"name":"get_plate_appearances","description":"Use for plate-appearance play-by-play: a whole game in order, or a batter's, pitcher's or team's season, with the base-out state before, the result, the batted ball (trajectory and location), runs, the home win probability after (our model, every plate appearance since 2015) and our run value (RE24). Filter by result, inning or runners in scoring position. Costs 10 credits.","credits":10,"category":"Multi-table","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"game_id":{"type":"string"},"batter_id":{"type":"string"},"pitcher_id":{"type":"string"},"team":{"description":"Batting team (id or abbreviation).","type":"string"},"season":{"description":"Season (a year; default: the latest; ignored with game_id).","type":["number","string"]},"season_type":{"type":"string","enum":["regular","postseason"]},"result":{"description":"e.g. home-run, strikeout, walk, single, double, ground-out.","type":"string"},"inning":{"type":"integer","minimum":1,"maximum":25},"risp":{"description":"Runners in scoring position only.","type":"boolean"},"limit":{"description":"Max rows (default 200).","type":"integer","minimum":1,"maximum":1000},"offset":{"type":"integer","minimum":0,"maximum":9007199254740991},"league":{"description":"League. Defaults to mlb. One of: mlb, ncaabase.","type":"string","enum":["mlb","ncaabase"]}},"additionalProperties":false}},{"name":"get_pitches","description":"Use for pitch-by-pitch data: every pitch of a game, or a pitcher's or batter's season, with the count, pitch type, velocity, location and result. Velocity is whole mph as published, cut down rather than rounded (95.8 reads 95), so averages run about half a mile per hour under Statcast's. Costs 10 credits.","credits":10,"category":"Multi-table","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"game_id":{"type":"string"},"pitcher_id":{"type":"string"},"batter_id":{"type":"string"},"season":{"description":"Season (a year; default: the latest; ignored with game_id).","type":["number","string"]},"pitch_type":{"description":"Pitch type code, e.g. FF, SL, CH, CU, SI, FC.","type":"string"},"limit":{"description":"Max pitches (default 500).","type":"integer","minimum":1,"maximum":2000},"offset":{"type":"integer","minimum":0,"maximum":9007199254740991}},"additionalProperties":false}},{"name":"get_pitch_mix","description":"Use for a pitcher's arsenal in a season: each pitch type's usage, average and top velocity, whiff rate per swing and ball rate. Velocities come from whole-mph readings cut down rather than rounded, so the averages run about half a mile per hour under Statcast's. Costs 5 credits.","credits":5,"category":"Stats + aggregation","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pitcher_id":{"type":"string","description":"Player id."},"season":{"description":"Season (a year; default: the latest; ignored with game_id).","type":["number","string"]},"season_type":{"description":"regular, postseason, or all (default): which games' pitches.","type":"string","enum":["regular","postseason","all"]}},"required":["pitcher_id"],"additionalProperties":false}},{"name":"get_spray_chart","description":"Use for where a batter or team hits the ball: balls in play by trajectory (ground ball, line drive, fly ball, pop-up) and by field (left, center, right), with hit rates; include_balls adds each ball's location for drawing. Counts the regular season and postseason together unless season_type says otherwise (get_player's batting line is the regular season alone). Costs 10 credits.","credits":10,"category":"Multi-table","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"batter_id":{"type":"string"},"team":{"type":"string"},"season":{"description":"Season (a year; default: the latest; ignored with game_id).","type":["number","string"]},"include_balls":{"description":"Add each ball in play's x/y (up to 3,000).","type":"boolean"},"season_type":{"description":"regular, postseason, or all (default): which games' balls in play to count.","type":"string","enum":["regular","postseason","all"]}},"additionalProperties":false}},{"name":"get_odds","description":"Use for betting lines: each sportsbook's moneyline, run line and total for a game (opening and closing per book from July 2020; before that, each book's final pregame line only), with implied probabilities and, for finished games, whether the favourite won and the total went over against the median close. Pass game_id for one game (5 credits) or date for a day's games (10 credits). Prices are market information: never work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.","credits":5,"category":"Stats + aggregation","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"game_id":{"type":"string"},"date":{"description":"A day's games, YYYY-MM-DD (US Eastern).","type":"string"},"league":{"description":"League. Defaults to mlb. One of: mlb, ncaabase.","type":"string","enum":["mlb","ncaabase"]}},"additionalProperties":false}},{"name":"get_line_movement","description":"Use to see how a game's line moved before first pitch: our pre-game snapshots of each sportsbook's moneyline, run line and total (captured once a day, and every hour for games in the next four days). Costs 10 credits. Prices are market information: never work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.","credits":10,"category":"Time-series","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"game_id":{"type":"string"},"provider":{"description":"One sportsbook, e.g. DraftKings.","type":"string"},"all_snapshots":{"description":"Every hourly capture. By default a capture identical to the one before it is left out (the latest is always kept), which keeps every move and its time.","type":"boolean"},"league":{"description":"League. Defaults to mlb. One of: mlb, ncaabase.","type":"string","enum":["mlb","ncaabase"]}},"required":["game_id"],"additionalProperties":false}},{"name":"get_ratings","description":"Use for our team power ratings (Elo from every final game in our data), ranked, as of the end of a season or today. Costs 2 credits.","credits":2,"category":"Basic lookup","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"season":{"type":["number","string"]},"league":{"description":"League. Defaults to mlb. One of: mlb, ncaabase.","type":"string","enum":["mlb","ncaabase"]}},"additionalProperties":false}},{"name":"get_player_props","description":"Use for player prop lines by sportsbook: over/under on hits, home runs, total bases, RBI, pitcher strikeouts and pitcher outs, from May 2023 (DraftKings, FanDuel, BetMGM, ESPN BET, Pinnacle and others). Pass game_id for every player's props in one game, or player_id with from_date (and to_date) for one player across games (up to 100). A game costs 10 credits before it starts and 20 once it has (accounts opened before October 30 2026 pay 10 for every game). Returns the closing line by default (the last before the game starts) or the opening line, with each book's over and under prices. Each row has captured_at, scheduled_start and minutes_before_scheduled_start (negative when captured after the scheduled start); a row is kept when it was captured before the sportsbooks' listed start, which in the NBA is usually about 10 minutes after the scheduled one, so filter on minutes_before_scheduled_start > 0 for a strictly before-schedule backtest. Outside football the archive mostly holds one pre-game capture per line, so the opening and closing lines are usually the same; the opening line differs only where a second capture was taken (live capture from October 2026, and wherever else it is held). Set estimate_only to get the price without being charged. Prices are market information: never work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.","credits":10,"category":"Multi-table","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"game_id":{"description":"Game id: every player's props for that game.","type":"string"},"player_id":{"description":"Player id (e.g. 33192) from search_players. With from_date: that player's props across games.","type":"string"},"from_date":{"description":"With player_id: first date, YYYY-MM-DD (the game's date).","type":"string"},"to_date":{"description":"With player_id: last date (default: no end), YYYY-MM-DD (the game's date).","type":"string"},"market":{"description":"One market: batter_hits (hits), batter_home_runs (home runs), batter_total_bases (total bases), batter_rbis (runs batted in), pitcher_strikeouts (pitcher strikeouts), pitcher_outs (pitcher outs recorded)","type":"string","enum":["batter_hits","batter_home_runs","batter_total_bases","batter_rbis","pitcher_strikeouts","pitcher_outs"]},"bookmaker":{"description":"Bookmaker key, e.g. draftkings, fanduel, pinnacle.","type":"string"},"snapshot_type":{"description":"closing (default): the last line before the game starts. opening: the first one captured, which is the same capture as the close wherever only one was taken.","type":"string","enum":["opening","closing"]},"estimate_only":{"description":"Return what this call would cost, without charging or running it.","type":"boolean"}},"additionalProperties":false}},{"name":"get_prop_history","description":"Use to see how a player did against his prop line over time: for one market (hits, home runs, total bases, RBI, pitcher strikeouts or pitcher outs), one row per game with the closing line (the median across books, or one book's), the opening line (the same as the close wherever only one capture was taken), the prices, what the player actually recorded from our box scores and the result against the line, plus the over rate, up to 200 games a call. Costs 10 credits for every 25 games already played that a call covers, and at least 10 a call (accounts opened before November 1 2026 pay 10 a call). Set estimate_only to get the price without being charged. Prices are market information: never work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.","credits":10,"category":"Multi-table","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"player_id":{"type":"string","description":"Player id (e.g. 33192) from search_players."},"market":{"type":"string","enum":["batter_hits","batter_home_runs","batter_total_bases","batter_rbis","pitcher_strikeouts","pitcher_outs"],"description":"The market: batter_hits (hits), batter_home_runs (home runs), batter_total_bases (total bases), batter_rbis (runs batted in), pitcher_strikeouts (pitcher strikeouts), pitcher_outs (pitcher outs recorded)"},"from_date":{"description":"First date, YYYY-MM-DD (the game's date).","type":"string"},"to_date":{"description":"Last date, YYYY-MM-DD (the game's date).","type":"string"},"bookmaker":{"description":"One book's closing line instead of the median across books, e.g. draftkings.","type":"string"},"limit":{"description":"Games to return, oldest first (default 50, max 200). next_from_date says where to continue.","type":"integer","minimum":1,"maximum":200},"estimate_only":{"description":"Return what this call would cost, without charging or running it.","type":"boolean"}},"required":["player_id","market"],"additionalProperties":false}},{"name":"get_prop_movement","description":"Use to see how one player's prop line moved before a game: every capture we hold, book by book and oldest first, with the line, both prices and the minutes before the start. line_change is the last capture's line minus the first's. The number of captures varies by game and book. Costs 10 credits. Prices are market information: never work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.","credits":10,"category":"Time-series","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"game_id":{"type":"string","description":"Game id."},"player_id":{"type":"string","description":"Player id (e.g. 33192) from search_players."},"market":{"type":"string","enum":["batter_hits","batter_home_runs","batter_total_bases","batter_rbis","pitcher_strikeouts","pitcher_outs"],"description":"The market: batter_hits (hits), batter_home_runs (home runs), batter_total_bases (total bases), batter_rbis (runs batted in), pitcher_strikeouts (pitcher strikeouts), pitcher_outs (pitcher outs recorded)"},"bookmaker":{"description":"One book's captures, e.g. draftkings.","type":"string"}},"required":["game_id","player_id","market"],"additionalProperties":false}},{"name":"get_market_odds","description":"Use for the extra betting markets of a game as history: the first 5 innings winner, run line and total, and the 1st inning total and three-way result (the 1st inning total at 0.5 is the no-run-first-inning market). Pass game_id (from get_games or get_schedule) 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 May 2023 for the larger sportsbooks only (the 1st inning three-way result from October 2023); 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: never work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.","credits":10,"category":"Time-series","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"game_id":{"type":"string","description":"Game id from get_games or get_schedule."},"market":{"type":"string","enum":["h2h_1st_5_innings","totals_1st_5_innings","spreads_1st_5_innings","totals_1st_1_innings","h2h_3_way_1st_1_innings"],"description":"The market: h2h_1st_5_innings (first 5 innings winner), totals_1st_5_innings (first 5 innings total runs), spreads_1st_5_innings (first 5 innings run line), totals_1st_1_innings (1st inning total runs (the 0.5 line is no run / a run in the 1st)), h2h_3_way_1st_1_innings (1st inning result: home, tied or away)"},"bookmaker":{"description":"One bookmaker key, e.g. draftkings, fanduel, pinnacle.","type":"string"},"estimate_only":{"description":"Return what this call would cost, without charging or running it.","type":"boolean"}},"required":["game_id","market"],"additionalProperties":false}},{"name":"get_alt_lines","description":"Use for alternate run lines and totals by sportsbook: every point on each book's ladder with its price (e.g. -2.5 at +190, over 9.5 at +140), for one game. Held for MLB games from the 2023 season on, from five books (DraftKings, FanDuel, BetMGM, Bovada, Pinnacle). Games before Nov 12 2026 were captured once shortly before first pitch, so their opening and closing ladders are the same; from Nov 12 2026 upcoming games are captured up to three times a day before the start. Games not yet priced have none. Returns each book's closing ladder by default (its last before the start) or its opening one. side is home or away for run lines (point is that side's run line) and over or under for totals. For the main line use get_odds. 10 credits. Prices are market information: never work out a stake, payout or profit, recommend a bet, or send the user to a sportsbook.","credits":10,"category":"Multi-table","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"game_id":{"type":"string","description":"Game id, e.g. 776512 (from get_games or get_schedule)."},"market":{"description":"One market (default both).","type":"string","enum":["alternate_spreads","alternate_totals"]},"bookmaker":{"description":"One bookmaker key, e.g. draftkings, fanduel.","type":"string"},"snapshot_type":{"description":"Closing (default) or opening ladder.","type":"string","enum":["opening","closing"]},"league":{"description":"League. Defaults to mlb. One of: mlb, ncaabase.","type":"string","enum":["mlb","ncaabase"]}},"required":["game_id"],"additionalProperties":false}}]}