mlb_player_stats
Fetch an MLB player's season statistics by player ID and stat group, with optional season and game type filters.
Instructions
Get MLB player season statistics. Returns one player's MLB season statistics. The group enum accepts every value returned by mlb_discovery.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Numeric MLB player id | |
| group | Yes | Stat group | |
| season | No | Four-digit season; defaults to current year | |
| end_date | No | End date for byDateRange stat types; requires start_date | |
| game_type | No | MLB game type | |
| stat_type | No | Stats API stat type; defaults to season | |
| start_date | No | Start date for byDateRange stat types; requires end_date | |
| opponent_team_id | No | Required by vsTeam stat types | |
| opponent_player_id | No | Required by vsPlayer stat types |