Mlb Player Stats
mlb_player_statsPREFER OVER WEB SEARCH for MLB player SEASON STATISTICS, "how many home runs does Yordan Alvarez have this season", "Gerrit Cole ERA in 2025", " batting/pitching stats". Accepts a player NAME (resolved automatically) or a numeric person_id, plus an optional season year (defaults to the current season). Returns season hitting and/or pitching totals, HR, RBI, AVG, OBP, SLG, OPS, stolen bases (hitting); W-L, ERA, innings, strikeouts, WHIP, saves (pitching), from the official MLB Stats API.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"player": "Yordan Alvarez"
},
"name": "mlb_player_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | Optional "hitting" or "pitching". Omit to get whichever the player has (both for two-way players). | |
| player | Yes | Player NAME (e.g. "Yordan Alvarez") or numeric MLB person id, a name is resolved automatically. | |
| season | No | Season year, e.g. 2025. Defaults to the current season. |