Skip to main content
Glama

paint_path

Paints a continuous road or trail along a polyline for Dungeondraft battle maps, producing a uniform terrain ribbon in one call instead of many separate dabs.

Instructions

Paint a continuous terrain stroke (a road/trail) along a polyline in one call.

asset is a TERRAIN asset, not a Paths one — this paints ground, it does not
lay a Paths element. Use draw_path for that.

points: a list of [x, y] woxel corners the path runs through (>= 2). The
bridge rasterizes a uniform ribbon of constant width by measuring each
pixel's distance to the nearest segment, so the route comes out smooth with
clean edges — no gaps or double-painted overlaps. Prefer this over stamping
many paint_terrain dabs for any line/road.

radius: half-width of the stroke in woxels. rate: peak strength 0..1 with a
soft falloff to the edges so it blends. asset: optional Terrain asset to
assign to the slot first (else set it with set_terrain_slot). Undoable.

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

Input Schema

NameRequiredDescriptionDefault
rateNo
slotNo
assetNo
pointsYes
radiusNo

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 supplied, the description carries the full burden and does well: it discloses that the stroke rasterizes as a constant-width ribbon with no gaps or double-painted overlaps, that rate falls off softly at edges, and that the operation is Undoable. It omits return shape and any constraints on very long point lists, which keeps it just short of complete.

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?

Front-loaded with purpose and the sibling disambiguation, then per-parameter semantics, then a trailing undo note. The rasterization explanation is slightly more detail than an agent strictly needs to pick and call the tool, but it justifies the preference over paint_terrain dabs, so it largely earns its space.

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 5-parameter mutating tool with no annotations and no output schema, the description covers purpose, alternatives, coordinate format, width semantics, strength behavior, and undoability. Only the slot parameter and any post-call result expectation are unaddressed, which are minor gaps rather than blockers.

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%, so the description must compensate, and it does for four of five parameters: points (woxel corners, minimum 2), radius (half-width in woxels), rate (peak strength 0..1 with soft falloff), and asset (optional Terrain asset assigned to the slot first). The slot parameter itself is never explained, leaving one gap in a low-coverage schema.

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?

States a specific verb and resource (paint a continuous terrain stroke / road/trail) plus the mechanism (polyline in one call). It also explicitly distinguishes itself from the likely confusion point by declaring the asset is a TERRAIN asset and pointing to draw_path for Paths elements.

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?

Gives an explicit alternative with the selecting condition ('Use draw_path for that') and a second routing rule ('Prefer this over stamping many paint_terrain dabs for any line/road'). The when-to-use decision is fully resolved without opening other schemas.

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