Skip to main content
Glama

mlb-api-mcp

MIT License
25
  • Apple

get_mlb_game_scoring_plays

Retrieve scoring plays and specific events from MLB games using game_id, with optional filters for event type, timecode, and fields. Ideal for accessing detailed baseball game data.

Instructions

Get plays for a specific game by game_id, with optional filtering by eventType.

Args: game_id (int): The game ID. eventType (Optional[str]): Filter plays by this event type (e.g., 'scoring_play', 'home_run'). timecode (Optional[str]): Specific timecode for the play-by-play snapshot. fields (Optional[str]): Comma-separated list of fields to include.

Returns: dict: Game plays, optionally filtered by eventType.

Input Schema

NameRequiredDescriptionDefault
eventTypeNo
fieldsNo
game_idYes
timecodeNo

Input Schema (JSON Schema)

{ "properties": { "eventType": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Eventtype" }, "fields": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Fields" }, "game_id": { "title": "Game Id", "type": "integer" }, "timecode": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Timecode" } }, "required": [ "game_id" ], "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