get_today_scoreboard
Retrieve today's NBA scoreboard with live game data, including scores, statuses, and team details via the NBA MCP Server.
Instructions
Get the current NBA scoreboard for today's games. The NBA scoreboard provides live data for games, including scores, game statuses, and team information.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server.py:139-152 (handler)The main handler function decorated with @mcp.tool that implements the get_today_scoreboard tool. It retrieves the live NBA scoreboard for today's games using the nba_api.stats.endpoints.scoreboard module.@mcp.tool def get_today_scoreboard() -> dict: """ Get the current NBA scoreboard for today's games. The NBA scoreboard provides live data for games, including scores, game statuses, and team information. """ try: board = scoreboard.ScoreBoard() print(board.games) if not board.games or not board.games.get_dict(): raise ValueError("No games found for today.") return board.games.get_dict() except Exception as e: return {"error": str(e)}