Skip to main content
Glama

Arrange layers

update_layer_set
DestructiveIdempotent

Arrange your own layers project: swap one layer's picture for another picture of yours (replace_with), show or hide a layer, move or resize it (box as [left, top, right, bottom] in the base picture's pixels), change its stacking order, or reset it back to where the split put it. Saves immediately through the same checks the Switch workspace uses, so the app shows the same thing.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "layer_set_id": "<layer_set_id>",
      "changes": "<changes>"
    },
    "name": "update_layer_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
changesYesOne entry per layer you are changing.
layer_set_idYesThe layers project id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / changes / items / properties / replace_with
      Added value: +{
      +  "description": "Swap this layer's picture for another picture of yours: the id of a Studio picture, a picture file in the chat, or an uploaded picture reference. The layer keeps its place and every other layer stays as it is. A cut-out (transparent background) fits best.",
      +  "type": "string"
      +}
  2. Added

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is largely covered. The description adds useful behavioral context by saying changes save immediately and pass through the same checks as the Switch workspace, but it does not explain failure modes or the full destructive consequences of replacing a layer's picture.

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?

The description is a single front-loaded sentence that opens with the core purpose and then enumerates the supported actions efficiently. It is appropriately sized, though the long enumeration could be structured more cleanly for scanning.

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 mutation tool with no output schema and a nested changes array, the description covers the main operations and immediate-save behavior adequately. It does not describe what the response contains, how partial failures are handled, or what validation checks may reject a change, leaving some gaps for an agent invoking it.

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 100%, so the schema already documents layer_set_id, changes, and each nested field thoroughly. The description restates operations and some parameter meanings such as replace_with and box coordinates, but adds little syntax or semantic detail beyond what the schema provides.

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?

The description states a specific verb and resource: arranging a layers project by replacing, showing/hiding, moving, resizing, reordering, or resetting layers. It enumerates the concrete operations supported, making the tool's purpose clear, though it does not explicitly distinguish itself from siblings such as get_layer_set or flatten_layer_set.

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 by 'Arrange your own layers project' and the list of supported operations, which tells an agent when this tool is relevant. However, it provides no explicit exclusions, prerequisites, or named alternatives for inspecting or flattening layers, leaving routing decisions partly to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources