mlb_league_stats
Fetch ranked MLB league statistics and stat splits across both leagues by group, season, team, league, position, or player pool, with pagination.
Instructions
Get ranked MLB league statistics. Returns ranked MLB stat splits across both leagues. group is required (hitting, pitching, fielding, catching, running, game, team or streak). season defaults to the current year and stat_type to season. Narrow with league_id, team_id, position, player_pool, and page with limit (1 to 100) and offset (0 to 10000).
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": {
"group": "<group>"
},
"name": "mlb_league_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | Yes | Stat group | |
| limit | No | Results to return (1-100) | |
| offset | No | Zero-based result offset (0-10000) | |
| season | No | Four-digit season; defaults to current year | |
| team_id | No | Optional MLB team id; discover current team ids with mlb_teams | |
| end_date | No | End date for byDateRange stat types; requires start_date | |
| position | No | Hitter position; use only with group=hitting | |
| game_type | No | MLB game type | |
| league_id | No | MLB league id | |
| stat_type | No | Stats API stat type; defaults to season | |
| start_date | No | Start date for byDateRange stat types; requires end_date | |
| player_pool | No | Qualified-player pool | |
| opponent_team_id | No | Required by vsTeam stat types | |
| opponent_player_id | No | Required by vsPlayer stat types |