Skip to main content
Glama

set_layer

Adjust a layer's name, visibility, lock, opacity, clipping mask, and blend mode in pedit to control how it appears and composites with layers below.

Instructions

Layer name, visibility, lock, opacity 0..1, clip (clipping mask onto the layer below), blend mode: normal, dissolve, darken, multiply, color_burn, linear_burn, darker_color, lighten, screen, color_dodge, add (linear dodge), lighter_color, overlay, soft_light, hard_light, vivid_light, linear_light, pin_light, hard_mix, difference, exclusion, subtract, divide, hue, saturation, color, luminosity; groups also pass_through.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clipNo
nameNo
blendNo
layerYes
lockedNo
opacityNo
projectNo
visibleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/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 behavioral-disclosure burden. It explains clip semantics and that groups also pass through, but does not state that this is a mutation tool, what happens to omitted properties, whether changes are destructive or reversible, or what permissions are required.

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 description is a single fragmented list rather than a structured sentence, and it opens with property names instead of a purpose statement. The long blend-mode enumeration is necessary because the schema lacks an enum, but the overall structure is dense and not front-loaded with the core action.

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 an 8-parameter mutation tool with no annotations, no output schema, and no schema descriptions, the definition is incomplete. It does not identify the required layer target, explain the project parameter, clarify update semantics for omitted fields, or describe return behavior, leaving key gaps for correct invocation.

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?

With 0% schema description coverage and 8 parameters, the description compensates substantially by documenting many updatable fields, including opacity range 0..1, clip meaning, lock/visibility, and an extensive blend-mode enum. It still omits meaning for the layer and project parameters, but it adds significant value beyond the bare schema.

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

Purpose3/5

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

The description is a list of layer properties rather than a clear verb+resource statement. An agent can infer that set_layer updates layer attributes, but there is no explicit 'set' or 'update' verb and no differentiation from siblings such as set_transform, set_text, set_shape, or move_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?

No when-to-use guidance is provided. The description does not say when to choose set_layer over related tools like move_layer, set_transform, group_layers, or set_mask, nor does it state any exclusions or prerequisites.

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