Skip to main content
Glama

delete_element

Remove any battle map element by its ID and reverse the change with undo, restoring the element exactly where it was with its ID intact.

Instructions

Delete any element from the map by id. Reversible with undo().

The element is detached rather than destroyed, so undo() puts it back
exactly where it was, with its id intact.

To take back what a place_prefab, scatter_objects or build_room just made,
call undo() once instead of deleting its pieces: each of those is ONE undo
step, but only while it is still the latest undoable operation. Anything
done since has to be undone first, which may not be what you want.

It leaves the map on the NEXT frame, so a get_status immediately after may
still count it. Read the count back a moment later, not in the same breath.

Terrain, water and floor shapes are layers, not elements: they have no id
and cannot be deleted. Paint over them, or draw them again with invert.

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

Input Schema

NameRequiredDescriptionDefault
idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations present, the description carries the full burden and does so: deletion is detachable and reversible via undo() with the id preserved, the effect applies on the NEXT frame so an immediately following get_status may still count the element, and terrain/water/floor layers have no id and cannot be deleted. These are exactly the behavioral traits an agent would otherwise have to discover empirically.

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 core action and its reversibility are front-loaded in the first two lines, and each following paragraph handles one distinct concern (undo routing, deferred application, layer exception). It is somewhat long for a single-parameter tool and the undo/undo-still-latest explanation is dense, but every sentence carries actionable information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter mutation with no annotations and no output schema, the description covers what happens on call, timing of the effect, reversibility, failure cases, and the correct alternative tool for non-deletable layers. Nothing an agent needs in order to invoke it correctly is missing.

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?

The schema documents only a bare integer 'id' at 0% description coverage. The description compensates by explaining that the id identifies a map element and that layers have no id at all, which tells the agent what values are valid and what will fail. It does not say how to obtain an id (e.g., from get_element or focus_element), so it falls just short of a 5.

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 opens with a specific verb and resource plus the lookup key: 'Delete any element from the map by id.' It also implicitly scopes the tool to elements (not layers/terrain/water/floors), which distinguishes it from the layer-related siblings. It does not explicitly differentiate itself from the singular/plural sibling delete_elements, keeping it short of 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing guidance is given for the main ambiguous case: to reverse a place_prefab, scatter_objects or build_room, call undo() once rather than deleting its pieces, because each of those is a single undo step. It also states when undo() is unavailable (only while the operation is still latest) and gives the correct alternative for layers ('paint over them, or draw them again with invert').

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

Deploy Server

Other Tools