get_game_stats
Retrieve basic game data from the League of Legends client to access current match statistics and player information.
Instructions
Basic data about the game.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- main.py:187-195 (handler)The handler function for the 'get_game_stats' tool. It is decorated with @mcp.tool() for registration and @with_timeout for error handling. It fetches basic game stats data from the League of Legends live client API endpoint '/liveclientdata/gamestats' using an HTTP client.@mcp.tool() @with_timeout async def get_game_stats() -> dict: """ Basic data about the game. """ async with get_lol_client() as client: response = await client.get("/liveclientdata/gamestats") return response.json()