Skip to main content
Glama

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
NameRequiredDescriptionDefault
riot_idYes

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()

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