Skip to main content
Glama

Entity details

ent_info
Read-only

Retrieve detailed data for a Garry's Mod entity by index—class, model, position, health, Lua table, server keyvalues, and door state—or learn when the ID is invalid.

Instructions

Details of one entity by index (id 0 = the world). Result: id, class, model, name, nick, pos, ang, valid, velocity, health, max_health, solid, movetype, collision_group (raw engine enums), obb {mins, maxs} (local bounds), parent and owner (entity ids or null), nw_vars (SetNW* values), table (the entity's Lua table, cut at depth/limit), and in the server realm keyvalues (map/engine keyvalues) and, for classes containing "door", door {m_eDoorState, m_toggle_state, state: closed|opening|open|closing|ajar}. Error not_found for an invalid id. Example: {"id": 57}. Needs a loaded map (map_load): the server and client realms do not exist at the main menu.

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": {
      "id": "<id>"
    },
    "name": "ent_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesEntity index (from ents_find / players_list).
depthNoDepth of the Lua `table` field (default 1).
limitNoMax keys per table in `table` (default 100).
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
idYes
angNo
obbNo
posNo
doorNo
nameNo
nextNo
nickNo
noteNo
classYes
modelNo
ownerNo
solidNo
tableNo
validYes
healthNo
parentNo
nw_varsNo
warningNo
movetypeNo
velocityNo
keyvaluesNo
next_callNo
max_healthNo
answered_byNo
truncated_noteNo
collision_groupNo
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 and openWorldHint, but the description adds valuable behavior: invalid ids return not_found, map_load is required, server realm keyvalues are included, and door classes expose door state fields. It omits the instance-relay behavior, though that is documented in the schema.

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

Conciseness3/5

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

The purpose is front-loaded, and the description is free of marketing fluff, but the long return-field enumeration duplicates what the output schema already provides and makes the paragraph dense. It is adequate but not maximally concise.

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?

Given the rich schema, output schema, and annotations, the description covers the key call prerequisites, invalid-id behavior, id 0 semantics, and realm caveats. The only notable omission is instance/coordinator relay behavior, but that is fully documented in the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema: id 0 refers to the world, depth/limit control how much of the Lua table is returned, and server-realm keyvalues are specifically included. It does not add meaning for the instance parameter beyond what the schema already says.

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 a specific verb and resource: details of one entity by index, with the useful special case that id 0 is the world. It is clear what the tool does, but it does not explicitly differentiate it from siblings such as ents_find or state when to use this instead of a list/search tool.

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 provides an important prerequisite: a loaded map is required because server and client realms do not exist at the main menu. However, it gives no explicit when-to-use-vs-alternatives guidance or exclusions beyond that implicit context.

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