Skip to main content
Glama

mlb-api-mcp

MIT License
18
  • Apple

get_mlb_schedule

Retrieve MLB game schedules for a specific date range, team, or sport ID. Input start and end dates, and optionally filter by team name or ID to access detailed schedule data.

Instructions

Get MLB schedule for a specific date range, sport ID, or team (ID or name).

Args: sport_id (int): Sport ID (default: 1 for MLB). start_date (str): Start date in 'YYYY-MM-DD' format. Required. end_date (str): End date in 'YYYY-MM-DD' format. Required. team (Optional[str]): Team ID or team name as a string. Can be numeric string, full name, abbreviation, or location. If not provided, defaults to all teams.

Returns: dict: Schedule data for the specified parameters.

Input Schema

NameRequiredDescriptionDefault
end_dateYes
sport_idNo
start_dateYes
teamNo

Input Schema (JSON Schema)

{ "properties": { "end_date": { "title": "End Date", "type": "string" }, "sport_id": { "default": 1, "title": "Sport Id", "type": "integer" }, "start_date": { "title": "Start Date", "type": "string" }, "team": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Team" } }, "required": [ "start_date", "end_date" ], "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