Skip to main content
Glama

layer_update

Modify a GIMP layer's name, visibility, opacity, X/Y offsets, blend mode, or alpha lock to change its appearance and behavior.

Instructions

Update layer name, visibility, opacity, absolute offsets, blend mode and/or alpha lock.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNo
yNo
nameNo
opacityNo
visibleNo
layer_idYes
blend_modeNo
lock_alphaNo
session_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.5.0
    • addedInput schema / properties / blend_mode
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Blend Mode"
      +}
    • addedInput schema / properties / lock_alpha
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Lock Alpha"
      +}
    • addedInput schema / properties / x
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "X"
      +}
    • addedInput schema / properties / y
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Y"
      +}
  2. First observedv0.2.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. 'Update' implies mutation but the description says nothing about permission/session requirements, whether unspecified fields are left untouched, reversibility, or side effects on related layers. Listing the mutable fields is the only behavioral signal.

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 compact sentence with no filler, and the field list is front-loaded after the verb. It is neither padded nor vague, though the dense comma-list is slightly harder to scan than a structured enumeration.

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?

An output schema exists, so return values need not be described. But for a 9-parameter mutation tool with zero annotation coverage and no schema descriptions, the definition omits the identity parameters, does not state that only supplied fields change, and gives no hint about failure modes or session handling.

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%, so the description must compensate, and it partially does: it maps name, visible, opacity, blend_mode, lock_alpha and clarifies that x/y are 'absolute offsets' rather than relative deltas, which the bare schema titles do not convey. However, session_id and layer_id are never explained, and optionality/partial-update semantics (all non-required params default to null) are left unstated.

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?

Specific verb ('Update') plus resource ('layer') and an enumerated list of mutable fields, so the agent knows exactly what the tool does. It does not differentiate itself from adjacent mutators such as layer_resize, transform_layer, or layer_reorder, which is the only thing keeping it from a 5.

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 prerequisites, and no mention of alternatives among the many sibling layer-mutation tools. The agent must infer that this is the general-purpose property editor rather than, say, layer_resize or transform_layer.

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