Skip to main content
Glama

get_player_scores

Retrieve a player's current scores by inputting their Riot ID. This tool connects to the League of Legends client to fetch in-game data, providing insights into player performance directly from the MCP server.

Instructions

Retrieve the list of the current scores for the player.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
riot_idYes

Implementation Reference

  • main.py:132-141 (handler)
    The handler function for the 'get_player_scores' tool. It is decorated with @mcp.tool() for registration and @with_timeout for error handling. It fetches the player's scores from the League of Legends client API endpoint using the provided riot_id.
    @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()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/johnnyinlee/lol-client-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server