Skip to main content
Glama

get_mlb_game_pace

Retrieve game pace statistics for MLB seasons to analyze game duration trends and timing patterns.

Instructions

Get game pace statistics for a given season.

Args: season (int): Season year. sport_id (int): Sport ID (default: 1 for MLB).

Returns: dict: Game pace statistics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seasonYes
sport_idNo

Implementation Reference

  • The core handler function for the 'get_mlb_game_pace' MCP tool. Decorated with @mcp.tool(), it defines the tool logic, input schema via type hints and docstring, and handles execution by calling mlb.get_gamepace with error handling.
    @mcp.tool() def get_mlb_game_pace(season: int, sport_id: int = 1) -> dict: """ Get game pace statistics for a given season. Args: season (int): Season year. sport_id (int): Sport ID (default: 1 for MLB). Returns: dict: Game pace statistics. """ try: gamepace = mlb.get_gamepace(str(season), sport_id=sport_id) return gamepace except Exception as e: return {"error": str(e)}

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/guillochon/mlb-api-mcp'

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