Skip to main content
Glama

delete_elements

Delete up to 100 map elements in one call and one undo step; the batch validates every ID first and can be restored with undo.

Instructions

Delete many elements in ONE call and ONE undo step. Reversible with undo().

Deleting one at a time costs a call and an undo slot each, and a large group
can push everything built before it out of the history's reach.

Before reaching for this on something you just created: a place_prefab,
scatter_objects, place_objects or build_room call is already a single undo
step, so undo() takes the whole thing back while it is the latest
operation. Use this for elements from different calls, or older work.

Up to 100 ids. Every id is resolved before anything is deleted: if one is
unknown the batch changes nothing and names it, rather than leaving you to
work out how far it got.

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": {
      "ids": "<ids>"
    },
    "name": "delete_elements"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses reversibility, the all-or-nothing validation semantics ("if one is unknown the batch changes nothing and names it"), and the undo-history pressure that motivates batching. It stops short of naming required permissions or what a successful response contains, but the behavioral contract is otherwise well covered.

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?

Front-loaded with the core benefit in the first sentence, then the undo() alternative, then the failure semantics. Three short paragraphs and every sentence carries information the agent cannot get from the schema.

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-annotation, no-output-schema mutation tool this is close to complete: cost model, reversibility, atomicity, cap, and a sibling alternative are all present. The only omission is guidance on obtaining valid element ids.

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 coverage is 0%, so the description must compensate; it states the 100-id cap and, more usefully, that every id is resolved before any deletion occurs and unknown ids are named back. It never says where ids come from (list_elements/select_elements), which is the one remaining semantic gap for a single-parameter tool.

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?

States a specific verb and resource ("Delete many elements") plus the two defining traits: one call and one undo step. It also implicitly and explicitly contrasts with the singular delete path and with undo(), so an agent can distinguish it from delete_element without inspecting either schema.

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?

Gives an explicit when-not: if the elements came from a single place_prefab, scatter_objects, place_objects or build_room call, undo() already reverses them, so use undo() instead. It then names the selecting condition for this tool — elements from different calls, or older work — which is exactly the routing information an agent needs.

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