Player-count history for one server
get_server_player_historyPlayer-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
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How 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_id | Yes | The server's numeric id. |