Skip to main content
Glama

Get Leaderboard Entries

steam_getLeaderboardEntries
Read-only

Retrieves Steam leaderboard scores and rankings for an app using a numeric ID or leaderboard name, supporting global, around-user, and friends-only views to compare player standings.

Instructions

Get leaderboard scores and rankings for a Steam app. Pass the numeric leaderboardid or the leaderboard_name (resolved through GetLeaderboardsForGame; the output then includes resolved_from). Uses the partner API (partner.steam-api.com) which requires a publisher API key with server IP allowlisted in Steamworks. Supports global, around-user, and friends-only views.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "appid": "<appid>"
    },
    "name": "steam_getLeaderboardEntries"
  }
}

Input Schema

NameRequiredDescriptionDefault
appidYesSteam application ID
steamidNoSteam ID required for AroundUser (1) and Friends (2) requests
rangeendNoEnd of the range, inclusive. Global and Friends: a rank index (default: 100). Around user: an offset from the user (default: 10). At most 500 entries per call; page with rangestart/rangeend.
rangestartNoStart of the range. Global (0) and Friends (2): a rank index, 0 or more (default: 0). Around user (1): an offset from the user, negative for players above them (default: -10).
datarequestNoRequest type: 0 = Global, 1 = Around user, 2 = Friends (default: 0)
include_namesNoAdd each player's persona name (personaname) to the entries, looked up with ISteamUser/GetPlayerSummaries in batches of 100 (default: false)
leaderboardidNoNumeric leaderboard ID (Steamworks dashboard > Leaderboards, or steam_getLeaderboardsForGame). Pass this or leaderboard_name.
leaderboard_nameNoLeaderboard name (API name or display name) as listed by steam_getLeaderboardsForGame. Use instead of leaderboardid; it is resolved to the numeric ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changedv0.10.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / appid / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / include_names
      Added value: +{
      +  "description": "Add each player's persona name (personaname) to the entries, looked up with ISteamUser/GetPlayerSummaries in batches of 100 (default: false)",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / leaderboard_name
      Added value: +{
      +  "description": "Leaderboard name (API name or display name) as listed by steam_getLeaderboardsForGame. Use instead of leaderboardid; it is resolved to the numeric ID.",
      +  "maxLength": 256,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / leaderboardid / description
      Previous value: -"Numeric leaderboard ID from your Steamworks dashboard (Settings > Leaderboards). This is NOT the leaderboard name - use the numeric ID."New value: +"Numeric leaderboard ID (Steamworks dashboard > Leaderboards, or steam_getLeaderboardsForGame). Pass this or leaderboard_name."
    • addedInput schema / properties / leaderboardid / maximum
      Added value: +9007199254740991
    • changedInput schema / properties / rangeend / description
      Previous value: -"End index for entries (default: 100)"New value: +"End of the range, inclusive. Global and Friends: a rank index (default: 100). Around user: an offset from the user (default: 10). At most 500 entries per call; page with rangestart/rangeend."
    • addedInput schema / properties / rangeend / maximum
      Added value: +9007199254740991
    • changedInput schema / properties / rangeend / minimum
      Previous value: -0New value: +-9007199254740991
    • changedInput schema / properties / rangestart / description
      Previous value: -"Start index for entries (default: 0)"New value: +"Start of the range. Global (0) and Friends (2): a rank index, 0 or more (default: 0). Around user (1): an offset from the user, negative for players above them (default: -10)."
    • addedInput schema / properties / rangestart / maximum
      Added value: +9007199254740991
    • changedInput schema / properties / rangestart / minimum
      Previous value: -0New value: +-9007199254740991
    • changedInput schema / required
      Previous value: -[
      -  "appid",
      -  "leaderboardid"
      -]New value: +[
      +  "appid"
      +]
  2. First observedv0.7.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered; the description adds genuinely new behavioral facts — the partner-API endpoint, the publisher-key plus IP-allowlist requirement, and that name resolution surfaces a resolved_from field in the output. It does not describe failure behavior (unknown leaderboard, missing steamid for AroundUser) or the shape of returned entries.

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

Conciseness4/5

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

Three tight sentences with the core action and parameter choice front-loaded, followed by credential and view-mode context. Every sentence carries information, though the credential sentence is dense enough that the auth constraint competes with the usage guidance for attention.

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?

With eight parameters, no output schema, and a 100%-documented schema, the description covers the pieces an agent cannot infer: which API host, what auth is required, how name resolution behaves, and what view modes exist. Remaining gaps are entry format and error semantics, which are modest for a read-only retrieval tool.

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 description coverage is 100%, so the schema already documents all eight parameters including the datarequest modes, range semantics, and the 500-entry paging cap; that sets the baseline at 3. The description adds only one detail beyond the schema — that leaderboard_name resolution echoes resolved_from in the output — which is useful but marginal given how complete the schema is.

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 and resource ("Get leaderboard scores and rankings for a Steam app") and immediately contrasts with the sibling that lists leaderboards by explaining that leaderboard_name is resolved through GetLeaderboardsForGame. An agent can tell this tool fetches entries apart from the one that enumerates leaderboards without opening either schema.

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

Usage Guidelines4/5

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

Gives clear operating context: which view modes exist (global, around-user, friends-only) and which credentials the call needs (publisher key with server IP allowlisted on partner.steam-api.com). It also routes the agent to steam_getLeaderboardsForGame for name resolution. It stops short of explicit when-not-to-use guidance or stating what to do when a leaderboard name is ambiguous or missing.

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