mlb: Get player stats
mlb_get_player_statsRetrieve detailed MLB player statistics by stat type and group, with optional season and field filters, to analyze hitting, pitching, or fielding performance.
Instructions
Get detailed statistics for a player by stat type and group.
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>",
"stats_type": "<stats_type>",
"group": "<group>"
},
"name": "mlb_get_player_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | Yes | Stat group: "hitting", "pitching", "fielding" | |
| fields | No | Keys to keep (comma-separated). | |
| season | No | Season year (e.g. 2024) | |
| player_id | Yes | Player ID | |
| stats_type | Yes | Stat type: "season", "career", "gameLog", "yearByYear", "seasonAdvanced", etc. |