Skip to main content
Glama

Set shape path vertices

set_shape_path

Replaces the vertices of a free-form shape path to redraw or morph it, optionally setting keyframes for animation.

Instructions

Replace the vertices of a free-form path in a shape group (the first Path item in groupPath, or pathName). With 'time' it sets a keyframe (call twice with different times to animate/morph); if the path is already animated it keys at the comp's current time.

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>",
      "vertices": "<vertices>"
    },
    "name": "set_shape_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
timeNoSet a keyframe at this time instead of a static value.
layerYesLayer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer.
closedNoClosed path (default true).
pathNameNoPath item name or index inside the group (default: first Path).
verticesYesNew points [[x,y],...] relative to the group origin.
groupPathNoGroup containing the path (e.g. 'Path' or 'Logo/Path 1').
inTangentsNoIncoming bezier handles per vertex, RELATIVE to each vertex. Default all [0,0] (straight lines).
outTangentsNoOutgoing bezier handles per vertex, relative to each vertex. Default all [0,0].

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 a non-read-only, non-destructive, closed-world setter, so the description does not need to restate safety. It does add behavior the annotations cannot: the implicit target-selection rule (first Path item), the keyframe/morph workflow, and the current-time fallback for already-animated paths. It stops short of stating failure behavior (e.g. what happens if groupPath is missing or the group has no Path).

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?

Two sentences, front-loaded with the action, and every clause carries information: target resolution, keyframe semantics, and the animated-path fallback. No filler, no repetition of schema fields.

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 mutation tool with full schema coverage and no output schema, the description covers purpose, target selection, and the keyframe workflow adequately. The remaining gap is error/edge behavior (missing group, mismatched tangent array length) and whether the call returns anything meaningful, which an agent must infer.

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 a baseline of 3 is the floor. The description goes beyond the schema by explaining resolution semantics for groupPath and pathName (defaults to the first Path) and by explaining that 'time' converts a static value into a keyframe, including the call-twice morph pattern. Those additions justify a point above baseline.

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: 'Replace the vertices of a free-form path in a shape group'. It also states the default target resolution ('the first Path item in groupPath, or pathName'), which lets an agent distinguish this from sibling setters such as set_mask_path or set_text_path. What it does not do is explicitly name those siblings as alternatives, so it stops just short of a 5.

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?

The description gives concrete usage context: use 'time' to set a keyframe, call the tool twice with different times to animate/morph, and it notes that when the path is already animated the keyframe lands at the comp's current time. That is real when-to-use guidance. It offers no explicit when-not conditions or routing to alternative tools.

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