Skip to main content
Glama

FastballAPI

get_plate_appearances

Read-only

Use for plate-appearance play-by-play: a whole game in order, or a batter's, pitcher's or team's season, with the base-out state before, the result, the batted ball (trajectory and location), runs, the win probability after (2019 on) and our run value (RE24). Filter by result, inning or runners in scoring position. Costs 10 credits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rispNoRunners in scoring position only.
teamNoBatting team (id or abbreviation).
limitNoMax rows (default 200).
inningNo
leagueNoLeague. Defaults to mlb. One of: mlb, ncaabase.
offsetNo
resultNoe.g. home-run, strikeout, walk, single, double, ground-out.
seasonNoSeason (a year; default: the latest; ignored with game_id).
game_idNo
batter_idNo
pitcher_idNo
season_typeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
countYes
next_offsetNo
plate_appearancesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.