Mlb Matchup
mlb_matchupMLB BATTER-vs-PITCHER history from the official MLB Stats API, "how has Yordan Alvarez hit against Tanner Bibee", " career numbers vs ". Accepts batter and pitcher NAMES (resolved automatically) or numeric ids. Returns the batter's hitting line against that specific pitcher (at-bats, hits, HR, RBI, AVG, OPS, strikeouts), split by season with career totals.
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": {
"batter": "Yordan Alvarez",
"pitcher": "Tanner Bibee"
},
"name": "mlb_matchup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batter | Yes | Batter NAME (e.g. "Yordan Alvarez") or numeric MLB person id. | |
| season | No | Optional season year to limit to; omit for full career. | |
| pitcher | Yes | Pitcher NAME (e.g. "Tanner Bibee") or numeric MLB person id. |