Skip to main content
Glama

Update layer

update_layer

Changes layer properties like name, visibility, opacity, blend mode, locks, clipping, and mask, or reorders and activates layers to organize a painting.

Instructions

Change layer properties (name, visibility, opacity, blend mode, lock, alpha lock, clipping, mask enable), make it active, or reorder it (move up/down/top/bottom, above/below another layer, or to an index).

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

Input Schema

NameRequiredDescriptionDefault
clipNoClip to layer below
moveNo
nameNo
aboveNoMove directly above this layer
belowNoMove directly below this layer
blendNo
indexNoMove to index (0 = bottom)
layerNoLayer id, name, or index (0 = bottom, -1 = top). Default: the active layer.
lockedNo
opacityNo0..1
visibleNo
activateNoMake this the active layer
alphaLockNo
maskEnabledNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden, and it does disclose the exact set of mutated attributes, which is the most important thing for a write tool. However it says nothing about reversibility/undo, what happens if the layer identifier is not found, precedence when move/above/below/index are combined, or what the call returns.

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?

A single front-loaded sentence with three parallel capability groups (properties, activation, reordering) and no filler. The dense parenthetical lists are efficient, though the reordering clause is slightly cluttered by listing every mode.

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?

For a 14-parameter mutation tool with zero annotations and no output schema, the description covers the parameter surface well but omits behavioral contract details an agent needs: return shape, error behavior for invalid layer references, and how competing reorder arguments resolve. It is close, but not complete for a tool of this complexity.

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?

Schema coverage is only 50%, and the description largely compensates by mapping natural-language concepts to nearly every parameter: name, visibility, opacity, blend mode, lock, alpha lock, clipping, mask enable, activate, and the four reorder modes (up/down/top/bottom, above/below, index). The gain is real though not fully additive — it restates parameter names rather than adding constraints such as mutual exclusivity between move and above/below/index.

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?

The description uses a specific verb (change/make active/reorder) on a specific resource (layer) and enumerates the properties and reorder modes it supports, so an agent knows exactly what class of mutation this performs. It stops short of naming a sibling to differentiate from, and 'mask enable' overlaps conceptually with the separate layer_mask tool without clarifying the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied through the enumerated capabilities — there is no explicit 'use this when' or 'use X instead' clause, and nothing says when to use this versus add_layer, transform_layer, or layer_mask. The property list does let an agent infer the scenarios, but selection against alternatives is left to inference.

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