Skip to main content
Glama

place_prefab

Insert a named Dungeondraft prefab at exact map coordinates to furnish rooms with complete assemblies, then adjust or undo placement as needed.

Instructions

Place one of Dungeondraft's pre-composed prefabs by name.

Call list_prefabs first to see what exists — names must match exactly.

Reach for this before hand-composing a common furnished unit. A tavern's
tables, a market stall, a smithing setup or a well already exist as prefabs
and will look better assembled than placed piece by piece.

ALWAYS pass x and y. A prefab otherwise lands wherever its author saved it,
usually near the map's top-left corner. With x and y the prefab's centre
lands there, and `placement` in the response reports what moved. If it
still lands wrong, undo() removes the whole prefab in one step while it is
the latest operation.

name: exact prefab name from list_prefabs.
set: optionally switch set first.
x, y: woxel point to centre the prefab on. Pass both or neither.
rotation: degrees to turn the whole prefab about its centre.
snap: snaps the centre x, y; see get_snap_settings.

Placement transforms walls with their mounted portals, paths, roofs,
patterns, objects, lights, freestanding portals, and text anchors (labels
stay upright). Cave-generated walls and unsupported elements are listed
in placement.skipped with reasons in placement.unsupported. Inspect those
and the footprint before repeating. To shift or rotate the group afterwards,
use move_elements with the returned ids — one call, one undo step.

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

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
setNo
nameYes
snapNo
rotationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.9/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 burden and does so: it discloses the default placement behavior (lands where the author saved it, near top-left), that x/y centre the prefab and that the response's `placement` reports what moved, and that undo() removes the whole prefab in one step while it is the latest operation. It further describes which element types get transformed and that cave-generated/unsupported elements appear in placement.skipped/placement.unsupported with reasons.

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?

Purpose is front-loaded in the first line and the rest is organized into short, scannable paragraphs covering prerequisites, placement, and return/cleanup behavior. It is on the long side, and the x/y guidance spans several sentences that restate the same point, but almost every sentence is load-bearing for a 6-parameter tool with no schema documentation.

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?

There is no output schema, yet the description explains the relevant response fields (placement, placement.skipped, placement.unsupported, returned ids) and how to act on them. For a group-placement mutation with cleanup and follow-up operations, 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 description coverage is 0%, so the description must compensate, and it documents all six parameters: name (exact prefab name from list_prefabs), set (optionally switch set first), x/y (woxel point centring the prefab, pass both or neither), rotation (degrees about the centre), and snap (centre snapping, referring to get_snap_settings). This adds meaning well beyond the bare schema titles and defaults.

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?

Opens with a specific verb+resource+scope: placing one of Dungeondraft's pre-composed prefabs by name. It is clearly distinguished from sibling placement tools (place_object, place_objects) by the 'pre-composed unit' framing and by the pointer to list_prefabs.

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?

Explicitly names the prerequisite (call list_prefabs first, names must match exactly) and gives a preference rule: use this before hand-composing a common furnished unit, with concrete examples (tavern tables, market stall, smithing setup, well). It also names follow-up alternatives: undo() for full removal and move_elements for shifting/rotating the group afterwards.

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