Skip to main content
Glama

Get Global Stats For Game

steam_getGlobalStatsForGame
Read-only

Retrieve all-player totals for a game's aggregated Steam stats, such as total kills or distance traveled, and optionally add daily history. Supply stat names to query without an API key.

Instructions

Get all-player totals for a game's aggregated stats (for example total kills or distance traveled), optionally with daily history. Only stats flagged as aggregated in Steamworks return data. No API key required when stat_names is given.

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_getGlobalStatsForGame"
  }
}

Input Schema

NameRequiredDescriptionDefault
appidYesSteam application ID
stat_namesNoStat API names to total. Only stats flagged as aggregated in Steamworks work. If omitted and STEAM_API_KEY is set, all stats from the app's schema are requested.
history_daysNoAlso return a daily total for each of the last N days (1-60)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.10.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so safety is covered. The description adds genuinely non-obvious behavior: the aggregation filter silently excludes non-flagged stats, and the API-key requirement changes depending on whether stat_names is supplied. It does not describe the response shape, which matters somewhat for a tool with no output schema.

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 short sentences, front-loaded with what the tool returns, followed by the two constraints that actually affect whether a call succeeds. Minor overlap with the schema on the aggregated-stat rule, but no filler.

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?

For a three-parameter read tool with annotations present and no output schema, the definition covers purpose, the aggregation limitation, and the auth nuance. The main remaining gap is that a caller cannot anticipate the returned structure or how history_days changes it.

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 all three parameters are already documented, including the aggregation constraint on stat_names and the 1-60 range on history_days. The description restates those points rather than adding new semantics, so the baseline 3 applies.

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

Purpose4/5

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

States a specific verb and resource ('Get all-player totals for a game's aggregated stats') plus concrete examples (total kills, distance traveled). The phrase 'all-player totals' implicitly separates it from the user-scoped sibling steam_getUserStatsForGame, but that sibling is never named, so differentiation is inferred rather than stated.

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

Usage Guidelines3/5

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

It does give one real precondition for success: only stats flagged as aggregated in Steamworks return data. Beyond that it offers no explicit routing guidance, e.g. when to prefer this over steam_getUserStatsForGame or steam_getSchemaForGame for stat discovery.

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