Skip to main content
Glama

delete_layer

Remove a layer (column, level, drawings) from an OpenToonz scene; undo-able to reverse unintended deletion.

Instructions

Delete a layer (column, level, drawings). Undo-able.

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

Input Schema

NameRequiredDescriptionDefault
layerYes
sceneYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.1/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, and 'Undo-able' is a genuinely valuable disclosure of reversibility for a destructive operation. However, it never states what happens to the layer's contents (are drawings deleted with it?), whether a scene can lose its last layer, or what the response looks like—significant gaps for a deletion tool with zero annotation coverage.

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 compact clauses with zero filler, and the core action is front-loaded. It borders on cryptic—the parenthetical is terse enough to raise as many questions as it answers—but nothing is wasted.

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?

A destructive, non-annotated tool with 0% schema coverage and no output schema needs considerably more: the scene parameter is undocumented and cascade behavior on layer contents is unstated. The undo hint is useful but leaves the agent under-informed before an irreversible-looking call.

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 0%, so the description must compensate for both parameters. It partially does by explaining what a 'layer' encompasses (column, level, drawings), but the required 'scene' parameter is never mentioned and no format or identifier guidance is given for either.

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?

States a specific verb and resource (delete a layer) and clarifies the ambiguous term 'layer' with parenthetical examples (column, level, drawings). It does not explicitly distinguish itself from siblings like add_layer or set_layer, but the delete verb makes the intent unambiguous.

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 guidance on when to use this rather than set_layer or other layer tools, and no prerequisites or conditions stated. The only hint of context is 'Undo-able', which implies reversibility but is not usage guidance.

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