get_player_main_runes
Retrieve basic rune setups for League of Legends players by entering their Riot ID. This tool accesses live client data to display current rune configurations.
Instructions
Retrieve the basic runes of any player.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"riot_id": "<riot_id>"
},
"name": "get_player_main_runes"
}
}Input 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 is decorated with @mcp.tool() for registration and @with_timeout. It fetches the player's main runes from the League of Legends live client API using the provided riot_id.
@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()