Skip to main content
Glama

arrange_objects

Places furniture against walls, around tables, or on surfaces in one undo step, fitting each asset to its drawn area for accurate battle-map layouts.

Instructions

Lay furniture out against a wall, around a table, or on a surface, in ONE undo step.

Fitted to each asset's DRAWN area (list_assets `drawn`, the target's
opaque bounds), never its canvas, so a shelf sits flush to its wall.
`assets` are used in turn, repeated to `count`.

mode='along_wall': backs a row against a wall, fronts into the room.
  along: [[x0, y0], [x1, y1]], the stretch of wall to line. The nearest
  parallel wall within 96 woxels is used and reported; `warnings` names
  any other wall that close (a double wall where two build_room rooms
  meet: pass wall_id). Corners and portals are kept `margin` (32) clear.
  toward: a point on the room side; needed when the wall is not a loop.
  count omitted fills the stretch. gap: fixed spacing, centred; omitted,
  spare room is shared evenly.
mode='around': seats `count` (4) assets around target_id, each facing it.
  shape 'auto' is round when the table's name says round, else rect
  (seats per side by length). clearance: gap from the table's drawn edge,
  negative tucks under (-16). jitter adds a few degrees and woxels so the
  table does not read as a grid.
mode='on_surface': sets `count` (3) items inside target_id's drawn area,
  `margin` (12) from its edge, turned a little, not overlapping. Layer
  defaults to one above the surface: 1100 over a 900 surface only with the
  Unofficial Patch, else refused.

facing: where each asset's front points at rotation 0. 'down' is how
Dungeondraft's own furniture is drawn; pack art may differ, so look, and
pass the facing it has. The reply says which was used.

dry_run: plan only, place nothing. Returns `objects` (with ids when
placed), `skipped` for items with no room, and `seed`. One undo() reverses
it; color is baked at placement, as in place_object.

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": {
      "mode": "<mode>",
      "assets": "<assets>"
    },
    "name": "arrange_objects"
  }
}

Input Schema

NameRequiredDescriptionDefault
gapNo
modeYes
seedNo
alongNo
colorNo
countNo
layerNo
scaleNo
shapeNoauto
assetsYes
facingNodown
jitterNo
marginNo
towardNo
dry_runNo
wall_idNo
clearanceNo
target_idNo

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 at all, the description carries the full behavioral burden and does so thoroughly: one undo step, assets fitted to drawn area rather than canvas, nearest parallel wall within 96 woxels auto-selected and reported in warnings, corners and portals kept clear, negative clearance tucking under tables, layer 1100 requiring the Unofficial Patch else refused, and color baked at placement. It also discloses the reply payload (objects, skipped, seed).

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 tool's verb and atomic-undo promise are front-loaded, then per-mode blocks follow in a scannable layout. It is long and parenthetical-heavy, and a sentence or two (e.g. the corner/portal and double-wall asides could be tightened), but nearly every sentence carries operational meaning.

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 18-parameter mutation tool with no annotations and no output schema, the definition covers behavior, mode-specific rules, failure conditions and return values well. Completeness is only slightly undercut by the undocumented 'scale' parameter and the unstated role of 'seed'.

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% across 18 parameters, so the description must compensate and largely does: mode values, assets repetition, count per-mode defaults (4, 3), gap centring, along/toward tuple shapes, margin defaults (32, 12), clearance signs, jitter, facing semantics, layer rules, color baking and dry_run are all explained. The gap is 'scale', which is never mentioned, and 'seed' only appears as a returned value without stating it makes jitter reproducible.

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?

The opening sentence names a specific verb ('Lay furniture out') and enumerates the three concrete layouts (against a wall, around a table, on a surface) plus the atomic undo guarantee. This is enough to distinguish it from single-item placement tools without opening any 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?

Each mode carries its own when-to-do-what guidance: pass 'toward' when the wall is not a loop, pass wall_id when a double wall exists, omit count to fill the stretch, set shape 'auto' for round tables, use dry_run to plan first. It never explicitly says when to prefer this over place_object/place_objects/scatter_objects, so the sibling-choice dimension is inferred rather than stated.

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