get_active_player_runes
Retrieve the active player's rune list in League of Legends using this tool. Access and analyze in-game data to enhance strategy and performance.
Instructions
Retrieve the full list of runes for the active player.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- main.py:112-118 (handler)The core handler function implementing the 'get_active_player_runes' tool. It asynchronously fetches the runes data for the active player from the League of Legends live client API endpoint '/liveclientdata/activeplayerrunes', with timeout handling via decorator.async def get_active_player_runes() -> dict: """ Retrieve the full list of runes for the active player. """ async with get_lol_client() as client: response = await client.get("/liveclientdata/activeplayerrunes") return response.json()
- main.py:110-110 (registration)Registers the 'get_active_player_runes' tool in the FastMCP server using the @mcp.tool() decorator. The tool name is derived from the function name.@mcp.tool()