Skip to main content
Glama

mlb-api-mcp

MIT License
18
  • Apple

get_multiple_mlb_player_stats

Retrieve MLB player statistics by specifying player IDs, stat group, type, season, and event type. Extract detailed performance data for analysis or integration into AI applications via FastAPI.

Instructions

Get player stats by comma separated player_ids, group, type, season, and optional eventType.

Args: player_ids (str): Comma-separated list of player IDs. group (Optional[str]): Stat group (e.g., hitting, pitching). type (Optional[str]): Stat type (e.g., season, career). season (Optional[int]): Season year. eventType (Optional[str]): Event type filter.

Returns: dict: Player statistics.

Input Schema

NameRequiredDescriptionDefault
eventTypeNo
groupNo
player_idsYes
seasonNo
typeNo

Input Schema (JSON Schema)

{ "properties": { "eventType": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Eventtype" }, "group": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Group" }, "player_ids": { "title": "Player Ids", "type": "string" }, "season": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Season" }, "type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Type" } }, "required": [ "player_ids" ], "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