Skip to main content
Glama

move_elements

Move up to 1000 battlemap elements by a shared offset in one call and one undo, with optional rotation, pivot control, and grid snapping for grouped objects.

Instructions

Move many elements by the same offset, in one call and ONE undo step.

Use it for anything that moves as a group: a prefab (its `ids` come back
from place_prefab), a scattered cluster, a furnished corner. Moving them one
at a time costs a call and an undo slot each.

ids: element ids, up to 1000.
dx, dy: offset in woxels (256 = one tile).

rotation: optional degrees around the group geometry's bounding-box centre,
  or around pivot_x/pivot_y when both are supplied; translation follows.
Walls keep their saved geometry and carry mounted doors/windows with them.
Duplicate ids move once. Text anchors move while labels stay upright.
Cave-generated walls and mounted portals without their wall are reported
in `unsupported`, with reasons. Returns `moved`, `missing`, `unsupported`,
the applied offset/rotation and pivot. Inspect these before repeating a prefab.
snap: rounds dx, dy to the nearest whole grid steps; see get_snap_settings.
  A group of only scatter_objects detail stays loose unless you pass snap.

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>",
      "dx": "<dx>",
      "dy": "<dy>"
    },
    "name": "move_elements"
  }
}

Input Schema

NameRequiredDescriptionDefault
dxYes
dyYes
idsYes
snapNo
pivot_xNo
pivot_yNo
rotationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the whole behavioral burden and does so richly: it discloses the single-undo-step semantics, that walls keep saved geometry and carry mounted doors/windows, that duplicate ids move once, that text labels stay upright, and that cave walls and orphaned portals are returned in `unsupported` with reasons. It also names the return fields, which no output schema provides.

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?

Front-loaded with the batch-and-one-undo pitch, then usage examples, then per-parameter notes, then return values. Every line carries information, though the opening headline and the following sentence restate the same call-vs-undo-slot point, which is mild redundancy.

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 7-parameter mutation tool with no annotations and no output schema, the description covers purpose, parameter meaning, edge cases (duplicates, unsupported elements), return fields, and the snap interaction with scatter detail. Nothing an agent needs to call it correctly is missing.

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

Parameters5/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, and it documents all seven parameters: ids (element ids, cap 1000), dx/dy (woxel offset, 256 = one tile), rotation (degrees around bounding-box centre or pivot when both pivot_x/pivot_y supplied), and snap (rounds to grid steps, with a pointer to get_snap_settings). That is meaning well beyond bare titles.

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 ("Move many elements") plus the batch semantics ("by the same offset, in one call and ONE undo step"). The follow-up sentence about moving them one at a time implicitly contrasts this with the singular move_element sibling, so an agent can distinguish them without opening 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 Guidelines4/5

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

Gives concrete when-to-use cases: a prefab whose ids come from place_prefab, a scattered cluster, a furnished corner. It also supplies an implicit exclusion by noting per-element moves cost a call and an undo slot each. It stops short of explicitly naming move_element as the alternative for single-element moves.

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