get_mlb_schedule
Retrieve MLB game schedules for specific dates or teams to plan viewing or track matchups. Filter by date range or team to get game details including times and participants.
Instructions
Retrieves the MLB game schedule for a specified date range, optionally for a specific team.
Args:
start_date (str, optional): The start date for the schedule (YYYY-MM-DD). Defaults to today.
end_date (str, optional): The end date for the schedule (YYYY-MM-DD). Defaults to today.
team_id (int, optional): The ID of the team to get the schedule for. Defaults to None (all teams).
Returns:
list: A list of dictionaries, where each dictionary represents a game in the schedule.
Each game dictionary contains details like game ID, date, time, home team, away team, etc.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start_date | No | ||
| end_date | No | ||
| team_id | No |