Skip to main content
Glama

Add shape modifier

add_shape_modifier

Adds a path operator such as trim paths, repeater, offset paths, round corners, or wiggle to a shape group or Contents root in After Effects so vectors can be trimmed, repeated, or distorted.

Instructions

Add a path operator to a shape group (or the Contents root, affecting all paths above it): trim_paths (start,end %, offset deg, trimMultiple), repeater (copies, offset, position, scale, rotation, anchorPoint, startOpacity, endOpacity, composite), offset_paths (amount, lineJoin, miterLimit, copies, copyOffset), round_corners (radius), merge_paths (mode), wiggle_paths (size, detail, points, wigglesPerSecond, correlation, temporalPhase, spatialPhase, randomSeed), zig_zag (size, ridgesPerSegment, points), twist (angle, center), pucker_bloat (amount, -100..100). Only the arguments that apply to the chosen type are used. 'properties' sets any other sub-property by name/matchName.

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>",
      "type": "<type>"
    },
    "name": "add_shape_modifier"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNotrim_paths end %.
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
modeNomerge_paths mode.
nameNoName for the modifier item.
sizeNowiggle_paths / zig_zag size px.
typeYesModifier kind.
angleNotwist angle degrees.
layerYesLayer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer.
scaleNorepeater transform scale % per copy.
startNotrim_paths start %.
amountNooffset_paths amount px / pucker_bloat amount %.
centerNotwist center.
copiesNorepeater / offset_paths copies.
detailNowiggle_paths detail (segments).
offsetNotrim_paths: offset degrees. repeater: offset (copies).
pointsNowiggle_paths / zig_zag point type.
radiusNoround_corners radius px.
lineJoinNooffset_paths line join.
positionNorepeater transform position offset per copy.
rotationNorepeater transform rotation per copy (degrees).
compositeNorepeater composite.
groupPathNoShape group path inside the layer's Contents: '/'-separated Vector Group names (or 1-based indexes), e.g. 'Logo' or 'Logo/Circle'. Omit or '' for the Contents root. A leading 'Contents/' is accepted. Use list_shape_contents to see names.
copyOffsetNooffset_paths copy offset.
endOpacityNorepeater end opacity %.
miterLimitNooffset_paths miter limit.
propertiesNoExtra sub-properties {name or matchName: value}.
randomSeedNowiggle_paths random seed.
anchorPointNorepeater transform anchor.
correlationNowiggle_paths correlation %.
spatialPhaseNowiggle_paths spatial phase.
startOpacityNorepeater start opacity %.
trimMultipleNotrim_paths: how multiple shapes are trimmed.
temporalPhaseNowiggle_paths temporal phase.
ridgesPerSegmentNozig_zag ridges per segment.
wigglesPerSecondNowiggle_paths wiggles/second.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. Beyond that, the description adds two genuinely behavioral facts: only the arguments relevant to the chosen type are used, and a root-level modifier affects all paths above it. It still omits error behavior for invalid type/argument combinations and whether the new modifier is undoable.

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?

Purpose and target scope are front-loaded, and the dense type→argument listing earns its length given nine modifier kinds and 35 parameters. It is effectively one long paragraph, though, which makes scanning for a single type harder than a structured list would be; there is little wasted wording but readability suffers slightly.

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 mutation tool with 35 parameters, nested objects, and no output schema, the definition covers the essentials: what is created, where it attaches, which arguments apply per type, and the generic 'properties' fallback. Remaining gaps are secondary — no statement of return value, failure modes, or interaction with pre-existing modifiers.

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 baseline would be 3, but the description consolidates the 35 parameters into a per-type argument map that makes selection easier than scanning the flat schema. It also adds the pucker_bloat range (-100..100), which the schema does not express, and reiterates the 'properties' escape hatch for arbitrary sub-properties by name/matchName.

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+resource ("Add a path operator to a shape group") and then enumerates the nine modifier kinds with their applicable arguments, so an agent knows exactly which capability this exposes. It is clearly distinguishable from siblings like add_shape, add_shape_group, and set_shape_path, and it even clarifies the target scope (named group vs. Contents root affecting all paths).

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?

The description implies usage through the scope note (group vs. root) and the per-type argument mapping, but never says when to reach for this tool versus add_shape / set_shape_path, nor any preconditions such as needing an existing shape group or calling list_shape_contents first. Guidance is inferable rather than explicit.

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