get_player_summoner_spells
Retrieve summoner spells for a League of Legends player by providing their Riot ID to access in-game data.
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:144-151 (handler)The handler function for the 'get_player_summoner_spells' tool. It makes an HTTP GET request to the League of Legends client API endpoint '/liveclientdata/playersummonerspells' with the provided riot_id parameter and returns the JSON response.@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()
- main.py:143-143 (registration)Registers the 'get_player_summoner_spells' tool with the FastMCP server using the @mcp.tool() decorator.@mcp.tool()