Skip to main content
Glama

mlb-api-mcp

MIT License
18
  • Apple

get_statcast_batter

Retrieve MLB Statcast batting data for a specific player within a defined date range using a MLBAM ID. Ideal for analyzing player performance metrics.

Instructions

Retrieve MLB Statcast data for a single batter over a date range.

Parameters

player_id : int MLBAM ID of the batter. start_date : str The start date in 'YYYY-MM-DD' format. Required. end_date : str The end date in 'YYYY-MM-DD' format. Required.

Returns

dict Dictionary with Statcast data for the batter. If the result is too large, returns an error message.

Notes

Data is sourced from MLB Statcast via pybaseball. See the official documentation for more details: https://github.com/jldbc/pybaseball/tree/master/docs

Input Schema

NameRequiredDescriptionDefault
end_dateYes
player_idYes
start_dateYes

Input Schema (JSON Schema)

{ "properties": { "end_date": { "title": "End Date", "type": "string" }, "player_id": { "title": "Player Id", "type": "integer" }, "start_date": { "title": "Start Date", "type": "string" } }, "required": [ "player_id", "start_date", "end_date" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/guillochon/mlb-api-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server