{"openapi":"3.1.0","info":{"title":"SportsData.io MLB (BYOK) API","version":"0.1.0","description":"SportsData.io MLB (BYOK) lets an AI assistant read your own SportsData.io MLB data through the SportsData.io MLB API with a key you supply (SportsData.io MLB API key). Read-only: 10 tools (get_standings, list_teams, get_season_schedule, list_games_by_date, get_current_season, list_team_players, list_team_season_stats, list_player_season_stats_by_team, list_stadiums, list_transactions_by_date)....\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-sportsdataio-mlb.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-sportsdataio-mlb/docs"},"termsOfService":"https://connectorbay.com/byok-sportsdataio-mlb/terms"},"servers":[{"url":"https://byok-sportsdataio-mlb.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-sportsdataio-mlb/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/get_standings":{"post":{"operationId":"get_standings","summary":"Get MLB standings for a season: wins, losses, winning percentage, league and division rank and clinch flags. Use for \"Wh","description":"Get MLB standings for a season: wins, losses, winning percentage, league and division rank and clinch flags. Use for \"What are the MLB standings this season\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"season":{"description":"Season year, for example 2026.","maxLength":10,"title":"Season","type":"string"}},"required":["season"],"title":"get_standingsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_teams":{"post":{"operationId":"list_teams","summary":"List active MLB teams with abbreviation, city, name, league, division, stadium id and manager and coaches. Use for \"Whic","description":"List active MLB teams with abbreviation, city, name, league, division, stadium id and manager and coaches. Use for \"Which division is the Yankees team in and who manages it\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_teamsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_season_schedule":{"post":{"operationId":"get_season_schedule","summary":"Get a season's MLB game schedule with game ids, date, status, teams, stadium and whether each game is final. Use for \"Sh","description":"Get a season's MLB game schedule with game ids, date, status, teams, stadium and whether each game is final. Use for \"Show the 2026 MLB regular season schedule\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"season":{"description":"Season year such as 2026, optionally followed by a season type: 2026PRE, 2026POST or 2026STAR (regular season when omitted).","maxLength":10,"title":"Season","type":"string"}},"required":["season"],"title":"get_season_scheduleArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_games_by_date":{"post":{"operationId":"list_games_by_date","summary":"List MLB games on one date with status, inning, runs, hits, errors, winning and losing pitcher and TV channel; updates l","description":"List MLB games on one date with status, inning, runs, hits, errors, winning and losing pitcher and TV channel; updates live during games. Use for \"What were the MLB scores on 2026-JUL-04\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"date":{"description":"Game date written as YYYY-MON-DD with a three-letter month, for example 2026-JUL-04.","maxLength":11,"title":"Date","type":"string"}},"required":["date"],"title":"list_games_by_dateArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_current_season":{"post":{"operationId":"get_current_season","summary":"Get the current MLB season: year, regular season and postseason start dates and the value to use as season in other tool","description":"Get the current MLB season: year, regular season and postseason start dates and the value to use as season in other tools. Use for \"What MLB season is current and when does the postseason start\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"get_current_seasonArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_team_players":{"post":{"operationId":"list_team_players","summary":"List a team's MLB roster with name, jersey number, position, status, bats, throws, height, weight, college and professio","description":"List a team's MLB roster with name, jersey number, position, status, bats, throws, height, weight, college and professional debut. Use for \"Who is on the Yankees roster\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"team":{"description":"Team abbreviation as returned by list_teams (Key), for example SF or NYY.","maxLength":5,"title":"Team","type":"string"}},"required":["team"],"title":"list_team_playersArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_team_season_stats":{"post":{"operationId":"list_team_season_stats","summary":"List season-total team statistics for all MLB teams: wins, losses, runs, hits, home runs, batting average, OBP, SLG, ERA","description":"List season-total team statistics for all MLB teams: wins, losses, runs, hits, home runs, batting average, OBP, SLG, ERA and saves. Use for \"Which MLB team has the best batting average\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"season":{"description":"Season year such as 2026, optionally followed by a season type: 2026PRE, 2026POST or 2026STAR (regular season when omitted).","maxLength":10,"title":"Season","type":"string"}},"required":["season"],"title":"list_team_season_statsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_player_season_stats_by_team":{"post":{"operationId":"list_player_season_stats_by_team","summary":"List season-total batting and pitching statistics for each player of one MLB team. Use for \"How many home runs has each ","description":"List season-total batting and pitching statistics for each player of one MLB team. Use for \"How many home runs has each Yankees player hit this season\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"season":{"description":"Season year such as 2026, optionally followed by a season type: 2026PRE, 2026POST or 2026STAR (regular season when omitted).","maxLength":10,"title":"Season","type":"string"},"team":{"description":"Team abbreviation as returned by list_teams (Key), for example SF or NYY.","maxLength":5,"title":"Team","type":"string"}},"required":["season","team"],"title":"list_player_season_stats_by_teamArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_stadiums":{"post":{"operationId":"list_stadiums","summary":"List MLB ballparks with city, state, country, capacity, playing surface, roof type, coordinates and outfield dimensions.","description":"List MLB ballparks with city, state, country, capacity, playing surface, roof type, coordinates and outfield dimensions. Use for \"What is the capacity and surface of each MLB ballpark\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_stadiumsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_transactions_by_date":{"post":{"operationId":"list_transactions_by_date","summary":"List MLB player signings, trades, waivers and releases recorded on one date. Use for \"Who was signed or traded in MLB on","description":"List MLB player signings, trades, waivers and releases recorded on one date. Use for \"Who was signed or traded in MLB on 2026-JUL-01\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"date":{"description":"Transaction date written as YYYY-MON-DD with a three-letter month, for example 2026-JUL-01.","maxLength":11,"title":"Date","type":"string"}},"required":["date"],"title":"list_transactions_by_dateArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}