Skip to main content
Glama

paint

Fills closed ink-layer areas with a chosen color at specified canvas points, reports points outside closed outlines so gaps can be fixed, and runs on an open live OpenToonz scene.

Instructions

Paint closed areas of a drawing on an ink layer, like clicking with the fill tool: every area that contains one of the points (canvas px) gets the colour. The outline around a point must be closed. Live only: it is done by OpenToonz itself, so the scene must be open there with the otbridge plugin (opentoonz_live shows the link). 'missed' lists points that were not inside a closed area: close the gap with stroke, or move the point. One undo step in OpenToonz.

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": {
      "scene": "<scene>",
      "layer": "<layer>",
      "frame": "<frame>",
      "points": "<points>"
    },
    "name": "paint"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorNo#ffffff
frameYes
layerYes
sceneYes
pointsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.2/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 whole behavioral burden and does substantial work: it discloses the live-only execution model, the external dependency (OpenToonz + otbridge plugin), the failure surface ('missed' points), and the undo footprint ('One undo step in OpenToonz'). It does not say whether existing fills/colours are overwritten or how partial successes are reported beyond 'missed'.

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?

Front-loaded with the action, then the closure requirement, then the live-only constraint, then error recovery, then undo cost — each sentence adds a distinct operational fact. There is no filler and no restatement of the tool name.

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 mutation with no annotations and no output schema, the definition covers the essential unknowns: execution locality, prerequisites, failure reporting, and undo semantics. The gap is the success-side return value — it never says what a successful call yields (e.g., which regions were filled) or how many undo steps vs. how the color default interacts.

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 description coverage is 0%, so the description must compensate, and it does for the critical parameter: points are in canvas pixels and each must fall inside a closed area, plus color is 'the colour' applied. Scene, layer, and frame are left entirely to the schema despite 0% coverage, and there is no hint about ordering, coordinate ranges, or that multiple points in one area collapse to a single fill.

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 closed areas of a drawing on an ink layer') and anchors it to a familiar mental model ('like clicking with the fill tool'). The scope condition ('every area that contains one of the points (canvas px) gets the colour') distinguishes it plainly from stroke or draw, which deposit marks rather than flood-filling enclosed regions.

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?

Gives explicit preconditions that gate usage: live only, the scene must be open in OpenToonz with the otbridge plugin, and opentoonz_live shows the link status. It also routes the agent on failure ('close the gap with stroke, or move the point'), naming a sibling tool as the remedy. It stops short of stating when to prefer this over draw/ink_layer in the first place, so not a full 5.

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