Skip to main content
Glama

mlb-api-mcp

MIT License
25
  • Apple

get_mlb_players

Retrieve MLB player data by specifying sport ID and optional season. Access comprehensive player statistics for baseball analytics.

Instructions

Get all players for a specific sport.

Args: sport_id (int): Sport ID (default: 1 for MLB). season (Optional[int]): Filter players by a specific season (year).

Returns: dict: All players for the specified sport.

Input Schema

NameRequiredDescriptionDefault
seasonNo
sport_idNo

Input Schema (JSON Schema)

{ "properties": { "season": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Season" }, "sport_id": { "default": 1, "title": "Sport Id", "type": "integer" } }, "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