Skip to main content
Glama
mpizza
by mpizza

get_mlb_schedule

Retrieve MLB game schedules for specific dates or teams to plan viewing or track matchups. Filter by date range or team to get game details including times and participants.

Instructions

Retrieves the MLB game schedule for a specified date range, optionally for a specific team. Args: start_date (str, optional): The start date for the schedule (YYYY-MM-DD). Defaults to today. end_date (str, optional): The end date for the schedule (YYYY-MM-DD). Defaults to today. team_id (int, optional): The ID of the team to get the schedule for. Defaults to None (all teams). Returns: list: A list of dictionaries, where each dictionary represents a game in the schedule. Each game dictionary contains details like game ID, date, time, home team, away team, etc.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
start_dateNo
end_dateNo
team_idNo

Latest Blog Posts

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/mpizza/mcp_mlb_statsapi'

If you have feedback or need assistance with the MCP directory API, please join our Discord server