mlb_team_stats
Get aggregate MLB team stats for a season, split by hitting, pitching, or fielding group and stat type.
Instructions
One team's aggregate stats — by season + group (hitting/pitching/fielding) and stat type.
Returns: {stats:[{type, group, splits:[{season, team, stat:{...}}]}]}
Auth: none needed.
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": {
"teamId": "<teamId>",
"season": "<season>"
},
"name": "mlb_team_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | hitting | pitching | fielding. | hitting |
| stats | No | season | career | yearByYear | ... | season |
| season | Yes | Season year. | |
| teamId | Yes | Team id. Required — part of the URL path. | |
| sportId | No | Sport id (1 = MLB). |