Skip to main content
Glama

Add empty shape group

add_shape_group

Create an empty vector group inside a shape layer's Contents or nested group to organize shapes and apply shared transforms, fills, strokes, and modifiers to all contained items.

Instructions

Add an empty Vector Group (for organizing / shared transforms) to a shape layer's Contents or inside another group. Then add shapes into it with add_shape groupPath='', and fills/strokes/modifiers that apply to everything inside.

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": "<layer>"
    },
    "name": "add_shape_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
nameNoGroup name (default 'Group', made unique).
layerYesLayer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer.
scaleNoGroup scale [x,y] %.
opacityNoGroup opacity 0-100.
positionNoGroup position (layer coordinates relative to the layer origin).
rotationNoGroup rotation degrees.
groupPathNoParent group (default: Contents root).
anchorPointNoGroup anchor point.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, non-open-world mutation. The description adds that the group starts empty, exists to organize content and share transforms, and can be nested, which is useful context. However, it says nothing about what is returned (no output schema) or how to reference the new group afterward, so it offers only modest value beyond structured fields.

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?

Two compact sentences, with the core action and its placement options front-loaded before the follow-up workflow. The second sentence is dense and slightly run-on, but no sentence is wasted.

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?

For a nine-parameter creation tool with full schema coverage, no output schema, and annotations covering safety, the description supplies enough to act correctly. The main residual gap is that it never indicates how to refer to the newly created group in later calls.

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 all nine parameters, including groupPath, position, anchorPoint, and layer resolution, are already documented. The description only echoes groupPath via the follow-up add_shape example and adds no transform or naming semantics beyond the schema, so the baseline of 3 applies.

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?

States a specific verb and resource ('Add an empty Vector Group') plus the two valid placements (layer Contents or inside another group), which separates it cleanly from add_shape, which inserts actual geometry. An agent can distinguish this container-creation tool from its siblings without opening the schema.

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 describes the intended workflow: create the empty group first, then populate it with add_shape using groupPath='<name>', and apply fills/strokes/modifiers to everything inside. It gives clear usage context but does not state exclusions, such as when a plain add_shape or existing group would be preferable.

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

Deploy Server

Other Tools