Skip to main content
Glama

Instance status

status
Read-only

Inspect a Garry's Mod instance's version, map, gamemode, realms, performance, loading state, main-thread stalls, and Lua mount changes; call first, even when the game is frozen.

Instructions

GMod version, branch, platform, map, gamemode, maxplayers, available realms (and injection generation), client lock, fps/frametime (perf), fps_max (the frame cap: 20 on a light test client) and host_timescale, loading (a map load in progress: the same flag as instances_list; menu.loading is the loading screen alone), uptime, age of the main thread's last tick (main_thread_stalled if > 5 s), Lua temporary directory (tmp_dir, absolute path), and with a mounted Lua folder (lua_mount) lua_mount: {path, loaded_with_mount, realms_without_mount, stale_files: [{file, disk, reason, realms}], warning?} (the folder's files that changed since each realm loaded them). Call this first. Works even if the game is frozen. Result: summary fields at the top (instance, mode, map, gamemode, maxplayers, fps_max, loading, main_thread_stalled...) and one object per realm (menu, server, client) with its own details; fields keeps only some top-level keys. Example: {"fields": ["map", "realms", "perf"]}.

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": "status"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsNoKeep only these top-level keys, e.g. ["map", "perf", "fps_max"].
instanceNoOptional. Instance identifier (see instances_list). If present and different from the local instance, the call is relayed by the coordinator to that instance.
timeout_sNoMax wait for Lua info (default 3).

Output Schema

NameRequiredDescriptionDefault
mapNo
pidNo
menuNo
modeNo
nextNo
noteNo
perfNo
portNo
clientNo
framesNo
realmsNo
serverNo
fps_maxNo
loadingNo
tmp_dirNo
warningNo
game_dirNo
gamemodeNo
instanceNo
platformNo
uptime_sNo
lua_mountNo
next_callNo
projectedNo
host_errorNo
maxplayersNo
answered_byNo
client_lockNo
coordinatorNo
layout_checkNo
agent_versionNo
loading_stuckNo
host_timescaleNo
truncated_noteNo
console_captureNo
last_tick_age_sNo
version_warningNo
loading_stuck_noteNo
main_thread_stalledNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.7

TDQS

A3.6/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, so the safety profile is covered. The description adds genuinely useful behavior beyond that: it works on a frozen game, it is the recommended first call, it relays to another instance via the coordinator, and it explains semantics like main_thread_stalled triggering past 5 s and fps_max being 20 on a light test client.

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

Conciseness2/5

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

The first sentence is a single run-on enumeration of nearly every return field, which duplicates what the output schema already provides, and the most operationally important instruction ('Call this first') is buried in the middle of the paragraph. Field specifics like the 5 s stall threshold and the loading-flag cross-reference do earn their place, but the wall-of-text form makes the definition hard to scan.

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 an output schema present and annotations covering safety, the description still supplies the complement an agent needs: call ordering, frozen-game viability, cross-instance relay behavior, the meaning of main_thread_stalled, and how `fields` truncates the result. The remaining gap is minor -- nothing is said about timeout failure behavior, though the timeout_s parameter implies 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 coverage is 100%, so all three parameters (fields, instance, timeout_s) are already documented in structured form, including the relay semantics for instance and the default 3 s timeout. The description only adds a worked example of `fields`; baseline 3 is appropriate when the schema carries the load.

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 makes clear this is a read-only diagnostic snapshot of a GMod instance, and 'Call this first' plus the mention that the loading flag is 'the same flag as instances_list' distinguishes it from that sibling. It never states a clean verb+resource phrase like 'get instance status' -- the purpose is delivered through an enumeration of returned fields -- which keeps it off a 5.

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?

'Call this first' is explicit ordering guidance, and 'Works even if the game is frozen' tells the agent this remains usable in the exact failure mode where other tools would hang. There is no when-not guidance and no reason to prefer an alternative beyond the one instances_list cross-reference, so it stops short of a 5.

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