mlb_teams_stats
Retrieve league-wide MLB team stats leaderboards for any season, filter by hitting, pitching, or fielding, and sort or limit results to find top teams.
Instructions
Aggregate stats across all teams — league-wide team leaderboard by season + group. Sort + limit for top-N.
Returns: {stats:[{type, group, splits:[{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": {
"season": "<season>"
},
"name": "mlb_teams_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | hitting | pitching | fielding. | hitting |
| limit | No | Max rows. | |
| stats | No | Stat type. | season |
| season | Yes | Season year. | |
| sportId | No | Sport id (1 = MLB). | |
| sortStat | No | Stat to sort by. |