Skip to main content
Glama

set_layer

Configure a layer's visibility, opacity, boil, style, and timing in an OpenToonz scene to control how it renders and animates.

Instructions

Layer properties: visible, opacity (0-1, renders), boil, style (needs redraw), timing 'auto'|'manual'.

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

Input Schema

NameRequiredDescriptionDefault
boilNo
layerYes
sceneYes
styleNo
timingNo
opacityNo
visibleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

C2.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose genuine side effects — opacity triggers a render, style requires a redraw — which is useful beyond structured data, but it omits whether null means 'leave unchanged', whether changes are undoable, what permissions or scene state are needed, and what the response looks like.

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

Conciseness3/5

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

It is short and front-loaded with no filler, but the telegraphic fragment style ('boil', 'needs redraw') is cryptic and lacks a subject or verb. Compactness here comes at the cost of readability rather than from disciplined editing.

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

Completeness2/5

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

For a seven-parameter mutation tool with no annotations and no output schema, the definition is thin: it never states that scene and layer are required, what null defaults do, whether a redraw or render call must follow, or any error conditions. An agent could guess the call but not the correct sequence around it.

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?

With 0% schema description coverage, the description must compensate, and it does for five of seven parameters: opacity range 0-1, timing values 'auto'|'manual' (not encoded as an enum in the schema), and the side-effect character of opacity and style. The gaps are scene/layer (only implied by the required list) and 'boil', which is named but never explained.

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

Purpose3/5

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

The description is a verb-less fragment naming the properties ('visible, opacity, boil, style, timing'), so the agent must infer from the tool name that this sets them. It is clear enough which layer attributes are covered, but there is no explicit statement of the action and no differentiation from siblings such as add_layer, delete_layer, or ink_layer.

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?

No when-to-use guidance, no prerequisites, and no mention of when a different tool (e.g., add_layer or delete_layer) is appropriate. The only routing-adjacent hints are inline notes like 'renders' and 'needs redraw', which imply follow-up work but never say to call anything.

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