Skip to main content
Glama

gimp_set_layer

Modify a GIMP layer's name, visibility, opacity, blend mode, position, or alpha lock, or mark it as the active layer.

Instructions

Cambia propiedades de una capa: nombre, visibilidad, opacidad (0-100), modo de fusión (normal, multiply, screen, overlay, soft-light, hard-light, difference, addition, subtract, darken-only, lighten-only, hue, saturation, color, value...), posición x/y, bloqueo de alfa, o la marca como capa activa (select=True).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNo
yNo
modeNo
nameNo
selectNo
opacityNo
visibleNo
layer_idYes
lock_alphaNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already carry the safety profile (readOnlyHint=false, destructiveHint=false), so the description does not need to restate that this is a non-destructive mutation. It adds some behavioral context by disclosing that select=True makes the layer active and that opacity is bounded 0-100, but it says nothing about whether the layer must exist, whether changes are immediate/undoable, 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 that opens with the verb+resource and then spends its remaining tokens on the parameter enumeration, with no filler. The long parenthetical blend-mode list is justified given the absence of schema enums, though the sentence is dense enough that a light structural break would read better.

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?

Annotations cover the safety profile and the description covers the parameters, but with no output schema the description should say something about what the call returns or confirms, and it is silent on that. The unresolved x/y-versus-gimp_transform_layer ambiguity also leaves a real gap for a 9-parameter mutation tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and there are zero enums, so the description must carry the burden and largely does: it names every settable parameter (name, visible, opacity with its 0-100 range, mode, x, y, lock_alpha, select) and supplies the full blend-mode vocabulary that the schema leaves completely opaque. This is exactly the kind of value-add the schema cannot provide; only layer_id and the precise meaning of x/y are left light.

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 ('Cambia propiedades de una capa') and then enumerates exactly which attributes are settable (name, visibility, opacity, blend mode, x/y, alpha lock, active flag), which is far more specific than a tautology. It is clearly distinct from gimp_new_layer, gimp_delete_layer or gimp_duplicate_layer, but never resolves the overlap with gimp_transform_layer for the x/y position parameter, so it stops short of full sibling differentiation.

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: the reader infers this is the tool to reach for when altering an existing layer's attributes, and the '(select=True)' note hints at the active-layer use case. There is no explicit when-to-use/when-not statement and no comparison against gimp_transform_layer, which is the obvious alternative for repositioning.

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