Skip to main content
Glama

Create shape layer

create_shape_layer

Creates a shape layer in a composition and optionally adds vector shapes with fills and strokes, returning group paths for later edits.

Instructions

Create a new shape layer in a comp, optionally with shapes added immediately (each shape in its own Vector Group with its own fill/stroke, same spec as add_shape). The layer's origin starts at the comp center, so shape positions are relative to it. Returns the layer and each shape's groupPath for later edits.

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": "create_shape_layer"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
nameNoLayer name (default 'Shape Layer N').
shapesNoShapes to add, e.g. [{type:'rect', size:[200,100], fill:'#ff0000'}].
positionNoLayer position in comp pixels (default comp center).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only cover the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=false), so the description adds real value by disclosing the layer origin starts at comp center and that shape positions are relative to it, plus what the call returns (layer plus each groupPath). It does not mention whether the new layer is auto-selected, how it stacks relative to existing layers, or any failure modes.

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?

Three tight sentences with no filler: what is created, the coordinate behavior that would otherwise cause misplacement, and the return payload. The most important operational fact (origin at comp center) is placed before the return-value sentence.

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?

With no output schema, the description correctly closes the loop by naming the return value and its groupPath entries. Given four top-level parameters fully documented in the schema and non-destructive annotations, the remaining gap is minor: it doesn't say where in the layer stack the new layer lands or what happens if the comp can't be resolved.

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%, so the schema carries the parameter burden and baseline would be 3. The description goes beyond it by explaining the coordinate frame for positions (origin at comp center), which the schema only states abstractly as 'layer coordinates relative to the layer origin,' and by pointing at add_shape for the per-shape spec rather than duplicating it.

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 opens with a specific verb and resource ('Create a new shape layer in a comp') and clarifies the optional immediate-shapes variant, which is the main thing separating it from add_shape. It references add_shape explicitly for the shape spec but never states plainly whether this creates a layer from scratch versus adding to an existing one when both could apply, leaving a small differentiation gap.

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 rather than stated: the 'optionally with shapes added immediately' and 'groupPath for later edits' phrasing hints that later shape additions belong to add_shape/add_shape_group, but no sentence says when to choose this tool over those siblings or what prerequisites exist (e.g., a comp must be open or targeted).

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