Skip to main content
Glama

add_floor

Draw solid, bordered room floors from a rectangle or point outline, and use invert to cut holes for built-map interiors.

Instructions

Draw a solid floor shape — the bordered room floors a built map is made of.

rect: [x, y, w, h] in woxels, or points: [[x,y], ...] for any outline.
invert: cut a hole in the floor instead of adding to it.

This is a different system from terrain and from patterns. Terrain is the
painted ground beneath everything; a pattern is a tiled surface; a floor
shape is a solid slab with an outlined edge, which is what makes a room read
as a built interior rather than a patch of ground. Reach for it when walling
a room, and paint terrain outside it.

Like terrain and water it is a layer, not an object: there is nothing to
select or delete, so use invert to take one back.

A native floor is not a pattern: it carries its own border WALL and can use
Dungeondraft's smart tiles. Unset options keep whatever the tool holds.

smart_tile_id: which floor style. Read the options from
  list_tool_controls('FloorShapeTool') — they are ids, not names.
wall_asset: the Walls asset used for this floor's own border wall.
wall_color: hex tint for that border wall.
bevel: bevel the border wall's corners.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "add_floor"
  }
}

Input Schema

NameRequiredDescriptionDefault
rectNo
bevelNo
invertNo
pointsNo
wall_assetNo
wall_colorNo
smart_tile_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.5/5.0
Behavior4/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 well: it discloses that a floor is a layer rather than an object with 'nothing to select or delete', that invert is the only undo path, that the shape carries its own border wall, and that 'unset options keep whatever the tool holds' — a non-obvious default-preservation rule. It stops short of saying what a successful call returns or how conflicting rect/points inputs behave.

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?

Structure is strong: a one-line definition, a compact format block, then a parameter list, all front-loaded. It is on the long side and the terrain/pattern contrast is restated across two paragraphs, but each sentence still carries distinct information an agent would otherwise have to guess.

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 7-parameter, all-optional, annotation-free mutation tool this is close to complete: input formats, layer semantics, undo path, default preservation, and control-id discovery are all covered. The remaining gaps are what a call returns and what happens when neither rect nor points is supplied, which matter for driving the tool reliably.

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%, and the description compensates by documenting every parameter: rect as [x, y, w, h] in woxels, points as [[x,y], ...], invert, bevel, wall_color as hex tint, and both wall_asset and smart_tile_id semantically. The smart_tile_id entry even routes to list_tool_controls('FloorShapeTool') and warns they are ids not names, but wall_asset has no equivalent discovery hint, leaving one asset-lookup gap.

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 line gives a specific verb and resource ('Draw a solid floor shape') and immediately characterizes it as 'the bordered room floors a built map is made of'. The dedicated paragraph then explicitly contrasts it with terrain and patterns, so an agent can distinguish it from the sibling surface-painting 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 Guidelines5/5

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

It states when to reach for it ('when walling a room') and prescribes the complementary action ('paint terrain outside it'), plus explicit when-not guidance by naming terrain and patterns as different systems. It also gives the removal path ('use invert to take one back') instead of leaving the agent to hunt for a delete tool, which is notable given siblings like delete_element exist.

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