Skip to main content
Glama

mlb-api-mcp

MIT License
25
  • Apple

get_mlb_teams

Retrieve all MLB teams for a specific sport using sport ID and optional season filter. Returns a dictionary of teams for easy integration with baseball data applications.

Instructions

Get all teams for a specific sport.

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

Returns: dict: All teams 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