mlb_teams_stats
Retrieve league-wide team stats leaderboard for any MLB season. Sort by a chosen stat and limit results to top teams for hitting, pitching, or fielding.
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.
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. |