get_mlb_roster
Retrieve MLB team rosters by team ID or name, with options to filter by date, roster type, season, and additional data fields for detailed player information.
Instructions
Get team roster for a specific team (ID or name), with optional filters.
Args: team (str): Team ID or team name as a string. Can be numeric string, full name, abbreviation, or location. date (Optional[str]): Date in 'YYYY-MM-DD' format. If not provided, defaults to today. rosterType (Optional[str]): Filter by roster type (e.g., 40Man, fullSeason, etc.). season (Optional[str]): Filter by single season (year). hydrate (Optional[str]): Additional data to hydrate in the response. fields (Optional[str]): Comma-separated list of fields to include.
Returns: dict: Team roster information.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
date | No | ||
fields | No | ||
hydrate | No | ||
rosterType | No | ||
season | No | ||
team | Yes |