get_mlb_sabermetrics
Retrieve sabermetric stats like WAR, wOBA, and wRC+ for MLB players by specifying player IDs, season, and stat group (hitting or pitching).
Instructions
Get sabermetric statistics (including WAR) for multiple players for a specific season.
Args: player_ids (str): Comma-separated list of player IDs. season (int): Season year. stat_name (Optional[str]): Specific sabermetric stat to extract (e.g., 'war', 'woba', 'wRc'). group (str): Stat group ('hitting' or 'pitching').
Returns: dict: Sabermetric statistics.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
group | No | hitting | |
player_ids | Yes | ||
season | Yes | ||
stat_name | No |