Skip to main content
Glama

Set Layer Properties

photopea_set_layer_properties

Update layer properties such as opacity, blend mode, visibility, name, or locked state. Only specified properties are changed; others remain unchanged. First inspect current values with get_layers, then modify only what you need.

Instructions

Update one or more properties on a layer. Only specified properties are changed; others remain at their current values. Use get_layers to inspect current property values before modifying.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetYesLayer name (string) or index (number)
opacityNoLayer opacity percentage (0 = fully transparent, 100 = fully opaque)
blendModeNoBlend mode (e.g. normal, multiply, screen, overlay, darken, lighten, color-dodge, color-burn)
visibleNoLayer visibility (true = visible, false = hidden)
nameNoNew display name for the layer
lockedNoWhether the layer is locked (true = prevent edits, false = allow edits)
Behavior4/5

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

Describes that only specified properties change, others remain. No contradiction with annotations (readOnlyHint false matches mutation). No side effects or limits described, but sufficient for a simple update.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two well-structured sentences. Front-loaded with purpose and partial update behavior. No filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Satisfies needs for a 6-param tool with no output schema. Provides clear purpose, partial update, and inspection hint. Could mention active document, but not required.

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 100% (baseline 3). Description adds 'Only specified properties are changed; others remain' which clarifies partial update semantics beyond schema.

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

Purpose5/5

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

Clearly states 'Update one or more properties on a layer' with specific verb and resource. Distinguishes from siblings by hinting at inspection via get_layers.

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

Usage Guidelines4/5

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

Explicitly suggests using get_layers before modifying to inspect current values. Provides clear context for when to use this tool versus the inspection tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/attalla1/photopea-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server