get_player_main_runes
Retrieve the primary runes of a League of Legends player by inputting their Riot ID. This tool fetches in-game rune data using the League of Legends Live Client Data API.
Instructions
Retrieve the basic runes of any player.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| riot_id | Yes |
Implementation Reference
- main.py:154-162 (handler)The main handler function for the 'get_player_main_runes' tool. It uses the LoL client API to fetch the main runes for a specified player by their riot_id. Includes decorators for tool registration (@mcp.tool()) and timeout handling (@with_timeout).@mcp.tool() @with_timeout async def get_player_main_runes(riot_id: str) -> dict: """ Retrieve the basic runes of any player. """ async with get_lol_client() as client: response = await client.get(f"/liveclientdata/playermainrunes?riotId={riot_id}") return response.json()