get_player_scores
Retrieve current player scores from League of Legends client data using Riot ID to track in-game performance metrics.
Instructions
Retrieve the list of the current scores for the player.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| riot_id | Yes |
Implementation Reference
- main.py:132-132 (registration)Registers the get_player_scores tool with the MCP server using the @mcp.tool() decorator.@mcp.tool()
- main.py:132-141 (handler)The main handler function for the 'get_player_scores' tool. It makes an HTTP GET request to the League of Legends client API endpoint `/liveclientdata/playerscores` with the provided `riot_id` parameter and returns the JSON response containing the player's scores. Wrapped with timeout handling.@mcp.tool() @with_timeout async def get_player_scores(riot_id: str) -> dict: """ Retrieve the list of the current scores for the player. """ async with get_lol_client() as client: response = await client.get(f"/liveclientdata/playerscores?riotId={riot_id}") return response.json()