mlb_playbyplay
Get a complete pitch-by-pitch account of any MLB game: each plate appearance's result, pitch counts, runners, and scoring-play flags. Use with a game ID to analyze plays.
Instructions
Pitch-by-pitch / play-by-play log — every plate appearance with result, pitches, counts, runners and scoring-play flags.
Returns: {allPlays:[{result, about:{inning,halfInning,isScoringPlay}, matchup:{batter,pitcher}, playEvents:[...], count}], scoringPlays, currentPlay}
Auth: none needed.
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": {
"gamePk": "<gamePk>"
},
"name": "mlb_playbyplay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gamePk | Yes | Game id. Required — part of the URL path. | |
| timecode | No | Point-in-time snapshot (YYYYMMDD_HHMMSS). |