mlb_teams_stats
Aggregate MLB team stats across all teams by season and group. Sort and limit results to top-N teams for league-wide leaderboards.
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:{...}}]}]}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | hitting | |
| limit | No | ||
| stats | No | season | |
| season | Yes | ||
| sportId | No | ||
| sortStat | No |