Skip to main content
Glama

ink_layer

Convert a vector layer into an editable ink layer so both you and the user can keep drawing; the level file becomes the source of truth and OpenToonz edits no longer lock it.

Instructions

Turn a vector layer into an ink layer, so you and the user can both keep drawing on it. Its level file becomes the only truth: the shapes it was built from are dropped, it is never recompiled, and edits made in OpenToonz no longer lock it. After this use stroke / read_drawing / erase_stroke; draw no longer applies.

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

Input Schema

NameRequiredDescriptionDefault
layerYes
sceneYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does unusually well: it discloses destructive/lossy consequences ('the shapes it was built from are dropped'), a permanent state change ('it is never recompiled'), and an interaction effect ('edits made in OpenToonz no longer lock it'). It does not say whether the conversion can be undone or what is returned, leaving a modest gap.

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?

Two sentences, front-loaded with the transformation and its payoff, and every clause carries real information about consequences. The second sentence is a dense multi-clause run-on joined by semicolons, which slightly hurts scannability but wastes no words.

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?

Given no annotations and no output schema, the description does the heavy lifting on state consequences and downstream tool routing, which is the most important part for a mutating conversion. It is still incomplete on parameter meaning and on what the call returns or how failure looks, so it is adequate rather than thorough.

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

Parameters2/5

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

Schema description coverage is 0% and the description does not explain either required parameter. 'Layer' is only referenced obliquely through 'a vector layer', and 'scene' is never mentioned at all, so an agent gets no clarification of identifier format or scope beyond the bare schema field names.

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 ('Turn a vector layer into an ink layer') plus the user-facing rationale ('so you and the user can both keep drawing on it'). It also distinguishes the resulting state from adjacent capabilities by naming the tools that take over afterwards (stroke / read_drawing / erase_stroke) and the one that stops applying (draw).

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 clear post-invocation routing: after conversion use stroke, read_drawing, erase_stroke, and explicitly says 'draw no longer applies', which is a genuine when-not signal. It stops short of saying when an agent should prefer an ink layer over leaving the layer vector, so the decision trigger is only implied.

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