Skip to main content
Glama

draw_path

Draw a path, road, or river through a list of woxel points on a battle map, with optional curve smoothing, width scaling, and fades or tapers at the ends.

Instructions

Draw a path/road/river through a list of [x, y] woxel points. Returns the new element id.

asset: a Paths asset path from list_assets(category='Paths').
smoothness: optional curve smoothing. width: optional width scale multiplier.

A wall-textured path looks like a wall but carries no line of sight into a
VTT export. Where vision matters, run a real draw_wall along it too.

End treatments, which are what make a path read as part of the world rather
than a strip laid on top of it:

fade_in / fade_out: the path's opacity fades at its start / end. Use where a
  trail should disappear into undergrowth or run off the map edge, instead
  of stopping at a hard rectangular cut.
grow / shrink: the path's WIDTH tapers at its start / end. A stream that
  narrows upstream, a track that widens as it approaches a gate.

Set these per path, here: changing the PathTool's own options beforehand
does not affect what this draws.

snap: 'none', 'grid' or 'auto'; see get_snap_settings.

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": "draw_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
growNo
snapNo
assetYes
layerNo
widthNo
pointsYes
shrinkNo
fade_inNo
sortingNo
fade_outNo
smoothnessNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A3.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description must carry the whole burden, and it does disclose several non-obvious traits: the returned element id, that a wall-textured path carries no line of sight in a VTT export, and that per-path end treatments override the PathTool's own options. It says nothing about layer/stacking behavior, failure modes, or whether an existing element is modified.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core action and return value are front-loaded, then supporting detail follows in clearly headed blocks (asset, smoothness/width, warning, end treatments, snap). The end-treatment prose is longer than average but each sentence adds a distinct distinction the agent needs to set those flags correctly.

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 11-parameter mutation tool with no annotations and no output schema, the description covers the action, the return, the visual/vision caveat, and the end-treatment semantics that are not inferable from parameter names. The z-order parameters (layer, sorting) are the main remaining gap an agent would have to guess at.

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%, so the description is doing all the work, and it covers most of the 11 parameters meaningfully: asset is tied to list_assets(category='Paths'), smoothness and width are identified as optional modifiers, snap enumerates its values and points to get_snap_settings, and fade_in/fade_out/grow/shrink are explained as opacity vs. width tapering. Only layer and sorting are left entirely undefined.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence gives a specific verb and resource ('Draw a path/road/river through a list of [x, y] woxel points') and states the return value (new element id), so the agent knows exactly what is produced. It differentiates against draw_wall for the vision case, but never mentions the sibling paint_path, leaving one plausible alternative unaddressed.

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?

Guidance is concrete where it exists: 'Where vision matters, run a real draw_wall along it too' explicitly routes a case to another tool, and the fade_in/fade_out and grow/shrink sections describe the situations that call for each option. It stops short of when-not-to-use or a comparison against paint_path.

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