Skip to main content
Glama

layer_groupSelection

Wrap multiple existing layers into a new Group, Bone, or Switch container while preserving stacking order and optionally applying a masking preset.

Instructions

Wrap multiple existing layers into a new Group, Bone, or Switch container preserving stacking order, with optional masking preset.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "layer_groupSelection"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
layerIdsNo
groupMaskNo
groupTypeNo
layerNamesNo
maskPresetNo
expandByPixelNo
invisibleMaskNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It usefully mentions preserving stacking order and an optional masking preset, but it does not disclose mutation semantics, whether source layers are moved or copied, constraints, failure behavior, or return values.

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 with no filler. It is efficient, though very dense given the number of parameters it should ideally clarify.

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?

This is an 8-parameter mutation-like operation with no annotations, no output schema, and no schema parameter descriptions. A single sentence covering purpose and partial behavior is insufficient for an agent to invoke it confidently across all options.

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

Parameters2/5

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

Schema description coverage is 0% across 8 parameters, so the description must compensate. It only hints at layerIds ('multiple existing layers'), groupType ('Group, Bone, or Switch'), and maskPreset ('optional masking preset'), while leaving name, layerNames, groupMask, expandByPixel, and invisibleMask unexplained.

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 action and resource: wrapping multiple existing layers into a new Group, Bone, or Switch container. This clearly distinguishes it from simple layer creation, although it does not explicitly name a sibling alternative.

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 'wrap multiple existing layers,' suggesting it is for grouping existing content rather than creating new layers. However, it gives no explicit when-not-to-use guidance and does not compare against siblings such as layer_reparent, layer_convertType, or bone_create.

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