Skip to main content
Glama

Query LCU OpenAPI/Swagger schema

lol_schema
Read-onlyIdempotent

Inspect League Client API endpoint signatures, parameters, and data models via live Swagger spec. Find exact request schemas and response types before calling lol_request.

Instructions

Inspect internal LCU API endpoint signatures, parameters, request bodies, and data models using the League client's live OpenAPI/Swagger v2 specification. Use this tool to find the exact request schema, parameter types, or response models before invoking lol_request. For a lightweight list of common endpoints, use lol_endpoints instead. For static game assets (champions, items, runes), use lol_static instead. Prerequisite: League client must be running to fetch swagger doc; cached in memory after first load.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoLCU path or keyword to search (e.g. "/lol-lobby/v2/lobby" or "gameflow")
modelNoLook up a specific definition/model schema name (e.g. "LolLobbyLobbyDto")
methodNoFilter operations by HTTP method
refreshNoForce re-fetch the swagger schema from the League Client

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.0
    • changedInput schema / properties / path / description
      Previous value: -"LCU path or keyword to search (e.g. /lol-lobby/v2/lobby or \"gameflow\")"New value: +"LCU path or keyword to search (e.g. \"/lol-lobby/v2/lobby\" or \"gameflow\")"
  2. Addedv0.2.0

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so safety is covered. The description adds genuinely useful behavior beyond that: the live League client must be running and results are cached in memory after first load. No return-shape detail, but the input/output expectations are otherwise clear.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the core purpose, then routing alternatives, then the prerequisite. No redundant sentences; every clause earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, but the description names what you retrieve (signatures, parameters, request bodies, data models) and discloses the runtime prerequisite and caching behavior. An agent has enough to invoke it correctly; only the exact return format is left implicit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with per-parameter descriptions (path keyword, model name, method enum, refresh flag), so the schema carries the semantics. The description adds only the general purpose of lookups ('find the exact request schema, parameter types, or response models'), which does not go much beyond the schema. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Inspect) and resource (LCU API endpoint signatures, parameters, request bodies, data models) and ties it to the live OpenAPI/Swagger v2 spec. An agent can immediately distinguish it from lol_request, lol_endpoints, and lol_static without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit when-to-use ('before invoking lol_request') and names two alternatives with their selecting conditions (lol_endpoints for a lightweight list, lol_static for game assets). Routing is unambiguous.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.