Skip to main content
Glama

Delete layer

delete_layer

Remove a layer from an Atelier painting by layer id, name, or index; defaults to the active layer.

Instructions

Delete a layer.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "delete_layer"
  }
}

Input Schema

NameRequiredDescriptionDefault
layerNoLayer id, name, or index (0 = bottom, -1 = top). Default: the active layer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, yet it says nothing about irreversibility, undo availability, whether pixels are lost, or what happens when the last remaining layer is deleted. Only the bare implication of destruction is conveyed.

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?

The single sentence is front-loaded with zero padding, but its brevity reflects under-specification rather than disciplined conciseness for a destructive operation.

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 destructive mutation with no annotations and no output schema, the definition omits any statement of consequences or return behavior. An agent has no way to know what it should report or guard against after calling it.

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 100% and the single parameter already documents accepted forms (id, name, index with 0=bottom/-1=top) and the active-layer default, so the description is not required to compensate. Baseline 3 applies.

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

Purpose2/5

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

"Delete a layer" merely restates the tool name and title; there is no elaboration of scope, effect, or what distinguishes it from siblings such as clear_layer, merge_layers, or duplicate_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?

There is no when-to-use guidance, no mention of prerequisites, and no exclusion of alternatives. An agent must guess whether deleting is preferred over clear_layer when the goal is simply to remove layer content.

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