get_today_scoreboard
Retrieve live NBA game scores, team information, and game statuses for today's matchups. This tool provides current basketball data to track ongoing games and results.
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:140-152 (handler)Handler function that fetches and returns the current NBA scoreboard for today's games using the nba_api scoreboard endpoint.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)}
- server.py:139-139 (registration)Registers the get_today_scoreboard tool using the FastMCP @mcp.tool decorator.@mcp.tool