get_player_summoner_spells
Retrieve a player's summoner spells in League of Legends by providing their Riot ID. This tool connects to the Live Client Data API to fetch in-game data efficiently.
Instructions
Retrieve the list of the summoner spells for the player.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| riot_id | Yes |
Implementation Reference
- main.py:143-152 (handler)This is the core handler function for the 'get_player_summoner_spells' MCP tool. It is decorated with @mcp.tool() which registers it as a tool, and @with_timeout for handling API timeouts and errors. The function takes a riot_id parameter and fetches the player's summoner spells from the League of Legends live client API endpoint.@mcp.tool() @with_timeout async def get_player_summoner_spells(riot_id: str) -> dict: """ Retrieve the list of the summoner spells for the player. """ async with get_lol_client() as client: response = await client.get(f"/liveclientdata/playersummonerspells?riotId={riot_id}") return response.json()