Skip to main content
Glama

List players

players_list
Read-only

Lists every player, including bots, with identity, position, health, and status data in the client or server realm; requires a loaded map.

Instructions

Every player (bots included). Result: {players: [{id (entity index, for player_set), class, model, nick, pos, ang, userid, steamid, bot, alive, health, eye_pos, eye_ang, noclip, god (server realm only)}], count, maxplayers}. Needs a loaded map (map_load): the server and client realms do not exist at the main menu.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "players_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmNoRealm (default server).
instanceNoOptional. Instance identifier (see instances_list). If present and different from the local instance, the call is relayed by the coordinator to that instance.

Output Schema

NameRequiredDescriptionDefault
nextNo
noteNo
countYes
playersYes
warningNo
next_callNo
maxplayersNo
answered_byNo
truncated_noteNo
version_warningNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.7

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description adds meaningful context on top: the map-load prerequisite, the realm caveat that 'god' is server-realm only, and the fact that bots are included. It stops short of describing pagination/limits or cost, but for a read-only list this covers the important behavioral traits.

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?

It is front-loaded with the core answer ('Every player (bots included)') and the prerequisite is stated last. The inline field enumeration is dense telegraphic style, but it earns its place by naming field semantics; nothing is obviously padded.

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 two-optional-parameter read tool with an output schema and read-only annotations, the definition covers scope, prerequisites, and realm-specific caveats. The output field list partly duplicates the output schema, so a small amount of space could be reclaimed, but nothing an agent needs to call it correctly is missing.

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%, so both realm and instance are already documented, and the instance relay behavior is fully explained in the schema. The description adds only indirect meaning by noting that realms do not exist before map_load; it does not deepen either parameter beyond the schema. 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?

The description states the resource and scope precisely -- 'Every player (bots included)' -- and previews the returned fields, which distinguishes it from the mutation sibling player_set (explicitly cross-referenced via 'id (entity index, for player_set)'). It is clear what the tool returns, though the verb itself is only implied by the name/title rather than written out in the description.

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 gives a concrete precondition -- a loaded map via map_load, because the realms do not exist at the main menu -- which is genuine usage guidance. However, it never says when to prefer this over alternatives (e.g. ents_find for non-player entities) and gives no guidance on choosing client vs server beyond the schema default.

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