Skip to main content
Glama
KyodanCFG
by KyodanCFG

undo_last_edit

Revert a map to its state before the most recent server edit. Restores the file from a snapshot, then prompts TrenchBroom to reload it.

Instructions

Restore the map to its state before the most recent edit made by this server (snapshot-based; one step per call). 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
map_pathYesAbsolute path to the .map file
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, and it does meaningful work: it discloses that the tool writes the file, that TrenchBroom-HL reloads automatically, and importantly that unsaved editor edits default to KEEPING the editor version. This is a subtle behavioral hazard that agents need to know. It stops short of a 5 because it does not mention what happens when no snapshot exists or what the tool returns on success/failure.

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

Conciseness5/5

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

The description is compact and information-dense: the main action and scope are front-loaded, followed by the critical side-effect and editor-reload behavior. Every sentence earns its place, and there is no redundant restating of the tool name or schema fields.

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 one-parameter, no-output-schema tool, the description covers the essential ground: purpose, edit scope, step granularity, file-write effect, and editor reload behavior. It is slightly incomplete because it does not specify the no-snapshot case or the tool's return/confirmation behavior, but these are not blocking 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?

There is only one parameter, map_path, and the schema already describes it fully as the absolute path to the .map file. The description adds no extra parameter-level meaning, so the baseline score of 3 applies given 100% schema coverage.

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 names a specific verb ('Restore'), a resource ('the map'), and a precise scope ('state before the most recent edit made by this server'), while also clarifying the snapshot-based, one-step limit. This makes the tool's job unambiguous and distinguishes it from broader map-editing operations.

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?

The description gives clear context for when the tool applies: only for edits made by this server, and only one step per call. It does not explicitly name an alternative tool or state when-not-to-use it, which keeps it a point below full guidance, but the scope and call-by-call limitation are clear.

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