Mlb Player Game Log
mlb_player_game_logMLB player GAME LOG, per-game batting or pitching lines for a season, newest first, from the official MLB Stats API. "How has Yordan Alvarez hit over his last 10 games", "Gerrit Cole's last five starts", " recent form". Accepts a player NAME (resolved automatically) or numeric person_id; defaults to the current season and the most recent 15 games. Each row carries the date, opponent, home/away, game result, gamePk, and the line (hitting: AB, H, HR, RBI, BB, K, SB, plus running AVG/OPS; pitching: IP, H, R, ER, BB, K, HR, pitches, decision).
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": {
"last": 10,
"player": "Yordan Alvarez"
},
"name": "mlb_player_game_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| last | No | How many most-recent games to return (default 15, max 200). The full-season count is always reported in games_in_season. | |
| group | No | Optional "hitting" or "pitching". Defaults to hitting for position players and pitching for pitchers. | |
| 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. |