get_player_stats
Retrieve a player's hitting, pitching, or fielding stats for a single season, career totals, or year-by-year breakdown. Provide the MLB player ID and choose the stat group and type.
Instructions
Get a player's batting, pitching or fielding stats.
Args:
player_id: MLB player id from search_players.
group: "hitting", "pitching" or "fielding".
stat_type: "season" (one season), "career" (career totals) or "yearByYear" (every season).
season: Season year for stat_type="season"; defaults to the current one.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"player_id": "<player_id>"
},
"name": "get_player_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | hitting | |
| season | No | ||
| player_id | Yes | ||
| stat_type | No | season |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||