mlb_player_stats
Returns one player's MLB season statistics. The group enum accepts every value returned by mlb_discovery. id: Required. Numeric MLB player id. end_date: Optional. Date-range end for byDateRange stat types; must be paired with start_date. Use mlb_player to get an MLB player.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Required. Numeric MLB player id. | |
| group | Yes | Required. One of hitting, pitching, fielding, catching, running, game, team, streak. | |
| season | No | Optional. Four-digit season; defaults to the current year. | |
| end_date | No | Optional. Date-range end for byDateRange stat types; must be paired with start_date. | |
| game_type | No | Optional. MLB game type code. | |
| stat_type | No | Optional. One of the stat types accepted by this endpoint; defaults to season. | |
| start_date | No | Optional. Date-range start for byDateRange stat types; must be paired with end_date. | |
| opponent_team_id | No | Optional opposing team id; required by vsTeam stat types. | |
| opponent_player_id | No | Optional opposing player id; required by vsPlayer stat types. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The tool result payload (shape varies per tool; see each tool's docs resource). |