Skip to main content
Glama

Player-count history for one server

get_server_player_history
Read-onlyIdempotent

[Servers] Player-count history for one server. The per-poll player_count/queued_count readings behind the server page's 24-hour chart, oldest first, as points of {t, players, queued}. One reading lands per poll cycle (roughly hourly); when the window holds more than 500 readings they are averaged into equal time buckets (resolution_seconds, null when the points are raw) so a response never exceeds 500 points. Also peak_players, avg_players and point_count. A server that has never answered a poll has an empty series. Cached for five minutes.

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": {
      "server_id": "<server_id>"
    },
    "name": "get_server_player_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoHow many days back to return (1-30). Snapshots are pruned nightly to the configured retention window (7 days by default - see `snapshot_retention_days` on `/servers/stats`), so longer ranges come back only as far as the table holds.
server_idYesThe server's numeric id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial behavior beyond them: one reading per poll cycle (roughly hourly), automatic bucketing into equal time buckets with `resolution_seconds` returned as null when points are raw, a hard 500-point cap, and a five-minute cache. It also discloses the empty-series edge case for a server that never answered a poll, which is exactly the kind of exception an agent needs.

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?

Front-loaded with purpose, then return shape, then bucketing mechanics, then edge cases and caching — a sensible ordering where nearly every clause adds information. It is denser than strictly necessary (the parenthetical about retention overlaps the schema) but avoids padding.

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

Completeness5/5

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

With no output schema, the description does the job of documenting the response: `points` as `{t, players, queued}`, plus `peak_players`, `avg_players`, `point_count`, and `resolution_seconds`. Combined with the caching note and empty-series case, an agent has everything needed to call and interpret 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%, with `days` (1-30) and `server_id` fully documented including the nightly-pruning/retention caveat, so the schema carries the parameter burden. The description adds only oblique context (24-hour chart framing, 500-point cap interacting with long windows) and does not restate or extend the parameter contract.

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?

The first sentence names a concrete verb and resource: 'Player-count history for one server', plus the scope ('one server'). It is clearly distinct from a generic count tool, though it never names a sibling (e.g. get_player_count / get_server_player_graph) to disambiguate when the aggregate or graph variant is preferable.

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?

Usage is implied by the framing 'behind the server page's 24-hour chart' and by the mention of averaging when a window is large, so an agent can infer this is for time-series retrieval over a day range. There is no explicit when-to-use/when-not clause and no routing to alternatives such as the plain player-count or graph tools.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources