Skip to main content
Glama

place_object

Places an object (prop) on the current battle map (Dungeondraft), returning its new element ID; supports positioning, rotation, layer sorting, colour, and optional light in one undo step.

Instructions

Place an object (prop) on the current map. Returns the new element id.

If you place a colourable asset WITHOUT a colour, the response comes back
with `colorable: true` and `mask_fraction`, and its note says whether the
object is a flat red shape or just has red accents.
Colour is baked at placement, so the fix is to delete it and place it
again with `color`. Choose one that suits the object (a blue banner, a
green tablecloth); if nothing fits better, Dungeondraft's own default is
#6b3834.

asset: an Objects asset path from list_assets(category='Objects').
x, y: woxel coordinates; defaults to map center. rotation: degrees.
sorting: 0=over, 1=under. snap: 'none', 'grid' or 'auto'; see get_snap_settings.

Two different tints, do not confuse them:

color: '#rrggbb', Dungeondraft's own colourable-asset colour — the same
  thing the app's colour picker sets. Only assets carrying the colourable
  attribute respond to it (including colorable carpets and crystals). On any
  other asset it is stored and never renders.
modulate: retained for compatibility, but nonempty values are refused because
  Dungeondraft does not preserve this tint when saving and reopening.

layer: which layer the object is drawn on — a VALUE, a multiple of 100 from
  -500 to 900 (also 1100, Above Lights, when get_status.unofficial_patch is
  loaded), not a menu index. 100 is the default and where most objects
  belong. Raise it to put something ON a surface: a floor pattern sits on
  100, so a mug placed on 100 can be buried by it, while 200 puts the mug
  above. `sorting` only reorders siblings within one layer and cannot do
  this. The response reports the layer the object actually landed on.

light: {color, energy, range, shadows, asset} as in add_light, made at the
  object's position in the same undo step: a lantern and its glow. The
  reply carries `light_id`.

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": {
      "asset": "<asset>"
    },
    "name": "place_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
snapNo
assetYes
colorNo
layerNo
lightNo
scaleNo
sortingNo
modulateNo
rotationNo
block_lightNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does a lot: colour is baked at placement, nonempty modulate is refused, layer is a numeric value not a menu index, sorting only reorders siblings, and the light is created in the same undo step. It also discloses response fields and warning signs for colourable assets, which an agent cannot get from structured fields.

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 description is front-loaded with purpose and organized into short sections, and its length is largely justified by the 12-parameter, zero-schema-description surface. It is still verbose in places and repeats the colour/colourable distinction across the colour discussion, but the structure remains usable.

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 complex mutation tool with no annotations, no output schema and 0% schema coverage, the description supplies strong return and behavior context: element id, colorable/mask_fraction response, layer actually landed on, and light_id. The missing scale and block_light parameter explanations keep it from being fully complete.

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 description coverage is 0%, and the description explains most of the 12 parameters in meaningful terms: asset source, x/y defaults, rotation, sorting, snap, color, modulate, layer and light. It omits scale and block_light, so two parameters remain undocumented.

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 first sentence states a specific verb and resource — place an object/prop on the current map — and says it returns the new element id. It is clear, but it never contrasts with plural place_objects or duplicate_object, so sibling selection still requires inference.

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 provides operational guidance for colourable assets, colour choice, layer raising and snap settings, including pointers to get_snap_settings and add_light. It does not explicitly say when to use this instead of place_objects or duplicate_object, so tool-selection guidance is incomplete.

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