Skip to main content
Glama

modify_object

Adjust an existing object's scale, rotation, shadow, light-blocking, or layer by id to refine or repair a placed Dungeondraft asset; lights also accept color, energy, and range.

Instructions

Modify an existing object's scale, rotation (degrees), color, shadow and/or light-blocking by id.

block_light: whether this object STOPS light passing through it. A drawn
  shadow and a light block are different things — a crate stack with a
  shadow but no block still lets a lantern light the room through it. Set
  it on anything solid enough to stand behind: crates, bookcases, screens,
  a wagon. get_element reports it back.

modulate: nonempty values are refused because the tint does not survive
  saving and reopening.
color is REFUSED: colour is baked at placement and cannot be changed
afterwards, here or in Dungeondraft's own UI. Set it in place_object.

layer: move an existing object to a layer VALUE (multiple of 100, -500..900,
  or 1100 with the Unofficial Patch).
Unlike colour this IS changeable after placement, and it is how a map built
before layers were assigned correctly gets repaired.

A LIGHT takes color, energy, range and shadows (as add_light), and they do
change after placement; nothing else applies to it.

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

Input Schema

NameRequiredDescriptionDefault
idYes
colorNo
layerNo
rangeNo
scaleNo
energyNo
shadowNo
shadowsNo
modulateNo
rotationNo
block_lightNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.4/5.0
Behavior5/5

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

With zero annotations the description carries the full burden and does so: it discloses that color cannot be changed after placement (in this tool or Dungeondraft's UI), that modulate is refused because tint does not survive save/reopen, and that layer changes are legal but gated on multiples of 100 in -500..900 (1100 with a patch). It also draws the non-obvious distinction between a drawn shadow and actual light blocking — exactly the kind of semantic an agent would otherwise get wrong.

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 action and affected fields, then organized into short paragraphs per problematic parameter, each earning its place by explaining a refusal or a trap. The only structural flaw is that 'color' appears in the opening enumeration before being declared unchangeable later, creating a contradiction a reader must resolve.

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 an 11-parameter mutation tool with no annotations and no output schema, the description covers behavioral traps, per-type applicability, and silent refusals well. It does not state what a successful call returns beyond the get_element hint, nor whether an invalid id or out-of-range layer errors or is silently ignored — small but real gaps given no annotations to fall back on.

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% across 11 parameters, so the description must compensate, and it documents most of them: rotation units (degrees), valid layer values, the modulate/color refusal, block_light semantics with concrete examples, and the light-only subset (color, energy, range, shadows). Gaps remain — scale has no stated unit or multiplier behavior, and range/energy units and valid bounds are undocumented — so it falls short of full coverage.

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?

Opens with a specific verb+resource and enumerates the mutable attributes (scale, rotation in degrees, shadow, block_light) keyed by id, then names sibling tools (place_object, add_light, get_element) as the places where other operations belong. Minor self-tension: the first line advertises 'color' as modifiable, but a later paragraph states color is REFUSED, so an agent skimming only the header would be misled.

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 when/when-not routing: color must be set in place_object, modulate values are refused, layer is the correct route for repairing maps built before layer assignment, and lights use this tool only for color/energy/range/shadows. It also tells the agent where to verify results (get_element for block_light), leaving little to inference.

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