mlb_linescore
Retrieve live MLB game linescores including per-inning runs, hits, errors, current inning state, and base/defense details. Accepts a game ID and optional timecode for point-in-time snapshots.
Instructions
Game linescore — runs per inning, R/H/E totals, current inning + state, and on-base/defense for live games.
Returns: {currentInning, inningState, isTopInning, innings:[{num, home:{runs,hits,errors}, away:{...}}], teams:{home:{runs,hits,errors}, away:{...}}}
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_linescore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gamePk | Yes | Game id. Required — part of the URL path. | |
| timecode | No | Point-in-time snapshot (YYYYMMDD_HHMMSS). |