Skip to main content
Glama

paint_strokes

Render an atomic batch of pressure-sensitive strokes with taper, antialiasing, smoothing, and dash patterns into a layer; per-stroke settings override defaults, and failed calls roll back.

Instructions

Render an atomic stroke batch with real pressure, taper and antialiasing into layer_id (default active). brush/color/smooth/dash here are defaults for every stroke; per-stroke values override. smooth=true draws Catmull-Rom curves through the points; dash=[on,off] dashes, [0,gap] dots. An empty list paints nothing. Document pixels independent of preview. Failure rolls back the complete call.

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

Input Schema

NameRequiredDescriptionDefault
dashNo
brushNo
colorNo
smoothNo
strokesYes
layer_idNoTarget layer id or unique layer name; the active layer stays unchanged. Default: active layer
dash_offsetNo
document_idNoTarget this document instead of the shared active one (recommended when several agents share the server)
coordinate_spaceNodocument
expected_revisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden: it discloses atomicity ('Failure rolls back the complete call'), that output goes to document pixels independent of preview, and the empty-list no-op. However, it omits permissions, concurrency behavior tied to expected_revision, and coordinate_space semantics, which matter for a mutation tool with 10 parameters.

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?

Dense but front-loaded: rendering target first, then defaults/override rules, then option semantics, then atomicity. Nearly every sentence earns its place, though the compression ('dash=[on,off] dashes, [0,gap] dots') is terse enough to risk misreading.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter mutation tool with no annotations and no output schema, the description covers the core rendering semantics and rollback behavior well. It is still incomplete on concurrency (expected_revision), coordinate space choice, and output/return expectations, which an agent would need before calling safely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 20%, so the description must compensate. It does add real meaning beyond the schema: the default/override precedence between top-level brush/color/smooth/dash and per-stroke values, Catmull-Rom behavior for smooth, and dash formats ([on,off] vs [0,gap] dots). It leaves coordinate_space, expected_revision, closed, and dash_offset unexplained, so coverage is partial.

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 description states a specific verb and resource ('Render an atomic stroke batch') plus the target ('into layer_id (default active)'), and mentions pressure/taper/antialiasing so an agent knows this is stroke drawing rather than fills or shapes. It doesn't name the closest sibling (paint_shape/paint_brush) to draw the boundary, so it falls short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no alternatives are named. The only usage-adjacent statement is 'An empty list paints nothing', which is a behavior rather than routing guidance for choosing among the many paint_* siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.