get_league_leaders
Retrieve MLB league leaders for a chosen statistic, season, league, and player group, with a configurable limit. Use it to compare top hitters or pitchers across AL, NL, or both leagues.
Instructions
Get the league leaders for a statistic.
Args:
category: Stat category, e.g. homeRuns, battingAverage, runsBattedIn, stolenBases,
onBasePlusSlugging, hits, earnedRunAverage, strikeouts, wins, saves, walksAndHitsPerInningPitched.
season: Season year; defaults to the current one.
group: "hitting" or "pitching". Needed for categories shared by both (e.g. strikeouts
for pitchers vs. batters). Defaults to the API's choice.
league: "AL", "NL" or "MLB" (both leagues).
limit: How many leaders to return (1-50).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_league_leaders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | ||
| limit | No | ||
| league | No | MLB | |
| season | No | ||
| category | No | homeRuns |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||