get_mlb_schedule
Retrieve MLB game schedules for a specific date range, team, or sport ID. Input start and end dates, and optionally filter by team name or ID to access detailed schedule data.
Instructions
Get MLB schedule for a specific date range, sport ID, or team (ID or name).
Args: sport_id (int): Sport ID (default: 1 for MLB). start_date (str): Start date in 'YYYY-MM-DD' format. Required. end_date (str): End date in 'YYYY-MM-DD' format. Required. team (Optional[str]): Team ID or team name as a string. Can be numeric string, full name, abbreviation, or location. If not provided, defaults to all teams.
Returns: dict: Schedule data for the specified parameters.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
end_date | Yes | ||
sport_id | No | ||
start_date | Yes | ||
team | No |