get_player_items
Retrieve a player's item list from League of Legends client data using their Riot ID.
Instructions
Retrieve the list of items for the player.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| riot_id | Yes |
Implementation Reference
- main.py:165-165 (registration)Registers the get_player_items tool using the FastMCP @mcp.tool() decorator.@mcp.tool()
- main.py:167-173 (handler)The main handler function that fetches the player's items from the League of Legends client API endpoint `/liveclientdata/playeritems`, handles the HTTP request, and returns the JSON response.async def get_player_items(riot_id: str) -> list[dict]: """ Retrieve the list of items for the player. """ async with get_lol_client() as client: response = await client.get(f"/liveclientdata/playeritems?riotId={riot_id}") return response.json()