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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_game_stats"
}
}Input 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()