Skip to main content
Glama

paint_material

Paint sculpted material patches like stone, earth, lava, or moss along a brush stroke on a Dungeondraft battle map, with control over size, layer, edge smoothing, and erasing.

Instructions

Paint a MATERIAL patch along a brush stroke. Returns what it painted.

Materials are their own system — irregular patches of stone, earth, lava or
moss with their own borders — and they are not terrain and not patterns.
A Materials asset passed to place_pattern makes a PATTERN, not a material.

Choose between them deliberately:
  terrain   ground that must BLEND into neighbouring ground
  pattern   a tiled floor inside a building
  material  a sculpted patch with its own edge, sitting on top of ground
  water     actual water

points: the stroke, in woxels. One point is a single dab.
asset: a Materials path from list_assets(category='Materials').
size: brush radius in mesh CELLS, 1-6 (larger is refused: the engine
  throws and paints nothing). A cell is typically one tile, so size 6
  paints roughly twelve tiles across PER DAB. Start at 1-2 and look.
layer: which material layer to paint into, -500 to 900 by 100. Materials
  on different layers stack rather than merge. -300 and below draw UNDER
  floors (add_floor, build_room); on a floor, paint at -200 or above.
smooth: smooth the patch's edge, versus following the material's own
  texture.
erase: remove this material along the stroke instead of adding it.

The response reports `cell_size_woxels` and `covered_woxels` so the brush
size can be reasoned about on the ground. There is no "did it land" flag,
because the engine offers no reliable one: verify a stroke by looking at it.
Each call is 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": {
      "points": "<points>",
      "asset": "<asset>"
    },
    "name": "paint_material"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNo
assetYes
eraseNo
layerNo
pointsYes
smoothNo

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 supplied, the description carries full burden and delivers: the size cap (1-6) with the failure mode ('engine throws and paints nothing'), layer stacking/sublayer behavior, that each call is one undo step, and the explicit absence of a 'did it land' flag with a workaround (verify by looking). This is unusually rich behavioral disclosure.

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 definition is front-loaded with purpose and returns up top, then organized into a scannable indented choice list and per-parameter notes. It is on the longer side, and a few parentheticals could be trimmed, but nearly every sentence carries actionable information rather than filler.

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?

For a six-parameter mutation tool with no output schema and no annotations, the description is complete: it covers the response fields (cell_size_woxels, covered_woxels), the missing success flag, undo semantics, failure conditions, and every parameter. An agent has everything needed to call it correctly and verify the result.

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 does: it defines points (one point = one dab), asset (a Materials path), size (radius in mesh cells, 1-6, with a tiles-across intuition and a start-small heuristic), layer (range and stacking/footprint rules), smooth, and erase. All six parameters gain meaning beyond the bare schema titles.

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 states a specific verb (paint), a specific resource (MATERIAL patch), and a specific modality (along a brush stroke). It then explicitly distinguishes materials from terrain, patterns, and water, so an agent can tell it apart from sibling tools like paint_terrain, fill_terrain, place_pattern, and add_water without opening other schemas.

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?

The 'Choose between them deliberately' block gives explicit when-to-use-this-vs-alternatives guidance for terrain, pattern, material, and water, including the key trap that a Materials asset passed to place_pattern makes a pattern, not a material. It also names the prerequisite source (list_assets(category='Materials')).

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