Skip to main content
Glama

mlb-api-mcp

MIT License
18
  • Apple

get_mlb_sabermetrics

Retrieve sabermetric stats like WAR, wOBA, and wRC+ for MLB players by specifying player IDs, season, and stat group (hitting or pitching).

Instructions

Get sabermetric statistics (including WAR) for multiple players for a specific season.

Args: player_ids (str): Comma-separated list of player IDs. season (int): Season year. stat_name (Optional[str]): Specific sabermetric stat to extract (e.g., 'war', 'woba', 'wRc'). group (str): Stat group ('hitting' or 'pitching').

Returns: dict: Sabermetric statistics.

Input Schema

NameRequiredDescriptionDefault
groupNohitting
player_idsYes
seasonYes
stat_nameNo

Input Schema (JSON Schema)

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