get_mlb_teams
Retrieve all MLB teams for a specific sport using sport ID and optional season filter. Returns a dictionary of teams for easy integration with baseball data applications.
Instructions
Get all teams for a specific sport.
Args: sport_id (int): Sport ID (default: 1 for MLB). season (Optional[int]): Filter teams by a specific season (year).
Returns: dict: All teams for the specified sport.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
season | No | ||
sport_id | No |