Skip to main content
Glama
KyodanCFG
by KyodanCFG

add_entity

Adds a point entity (light, monster, item) to a map file and triggers a live reload in TrenchBroom.

Instructions

Add a point entity (e.g. a light, monster, item). Writes the file; TrenchBroom-HL reloads it automatically, but asks first - and defaults to KEEPING the editor version - if the document has unsaved edits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
originNoPosition [x y z]; omitted for non-positional entities
map_pathYesAbsolute path to the .map file
classnameYesEntity class, e.g. "light" or "info_player_start"
propertiesNoAdditional key/value properties
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It openly states that the tool writes the file and explains the reload behavior when TrenchBroom-HL has unsaved edits, including the default of keeping the editor version. This is valuable, though the phrasing leaves some ambiguity about the exact consequence of that default.

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?

The description is compact and front-loaded with the core action, followed by the most important side-effect. It uses one somewhat run-on sentence with semicolons and dashes, but every clause earns its place and there is no wasted text.

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 tool's moderate complexity—writing a file, interacting with an editor, and optional parameters—the description covers the key behavioral caveat and the schema covers all parameters. It does not discuss return values or what happens if the editor is not running, but those are not essential for correct invocation.

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%, so the baseline applies. The description adds examples for classname and clarifies the 'point entity' concept, but it does not add substantive parameter semantics beyond what the schema already documents for origin, properties, map_path, and classname.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Add') and resource ('point entity') with concrete examples, and the 'point entity' qualifier distinguishes it from sibling tools like add_brush_box. It clearly states the side effect of writing the file, leaving no doubt about what the tool does.

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?

The description implies this is the tool for adding point entities rather than brushes or property updates, but it does not explicitly state when to prefer it over alternatives such as add_brush_box or set_entity_properties. Usage context is present but left to inference.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/KyodanCFG/trenchbroom-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server