Skip to main content
Glama

update_layer

Modify layer properties—opacity, blend mode, visibility, locks, clipping, color label, and position—by layer ID or name to control rendering and placement.

Instructions

Change layer properties. layer = id or name (default: active layer). opacity is 0..1. blend_mode uses Krita ids such as normal, multiply, screen, overlay, add, color, hue. alpha_locked = only paint where the layer already has pixels; clipped = clip to the layers below in the group (Krita "inherit alpha"); color_label 0-8. x/y place the top-left of the layer's content (its "bounds"); dx/dy move it relative to where it is.

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
dxNo
dyNo
nameNo
layerNo
lockedNo
clippedNo
opacityNo
visibleNo
activateNo
blend_modeNo
color_labelNo
alpha_lockedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/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 disclosure burden, and it does add real behavioral detail: 'layer' defaults to the active layer, opacity is 0..1, blend_mode takes Krita ids, and x/y set absolute bounds while dx/dy are relative. However, it never says what happens when no properties are supplied, whether partially supplied fields are left untouched, or what the 'name' parameter actually does (rename vs. selector), which is a genuine ambiguity given 'layer = id or name'.

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?

Front-loaded with a one-line purpose followed by a compact per-parameter glossary; no filler and no repetition of the schema types. It could be marginally better structured by separating the target-selection parameters from the properties being changed.

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 no annotations, no output schema, and no schema descriptions, the definition covers the majority of the surface but is not complete: four parameters are undocumented, partial-update/no-op semantics are unstated, and there is no hint about failure modes such as an unknown layer or invalid blend mode id.

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 0% across 14 parameters, so the description has to compensate; it explains 10 of them with useful detail (opacity range, blend_mode id list, alpha_locked, inherit-alpha clipping, color_label 0-8, absolute vs relative positioning). It leaves 'name', 'locked', 'visible', and 'activate' (default false) completely unexplained, and the 'name' omission is the most costly since it is easily confused with the layer-name selector.

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?

"Change layer properties" states a specific verb and resource, and the parameter glossary makes the scope concrete (opacity, blend mode, alpha lock, clipping, bounds). It does not explicitly distinguish itself from siblings like transform_layer or arrange_layer, which also touch layer geometry/stacking, so an agent must infer 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 implied rather than stated: the parameter list suggests it is the general-purpose mutator for an existing layer, as opposed to create_layer/delete_layer/duplicate_layer. There is no explicit when-to-use or when-not-to-use statement, and no mention of how this relates to transform_layer for the x/y/dx/dy case.

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