Skip to main content
Glama

Draw-on (trim paths) animation

draw_on_animation

Create a stroke draw-on animation in After Effects by adding or reusing Trim Paths and keyframing End from 0 to 100%. Animate Start for a wipe-off or swap values to reverse.

Instructions

Convenience: add (or reuse) a Trim Paths in a shape group / Contents root and keyframe its End from 0 to 100 % over 'duration' so strokes draw on. property='start' animates Start instead (wipe-off); reverse swaps from/to. Existing keys on that property are replaced.

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

Input Schema

NameRequiredDescriptionDefault
toNoEnd value % (default 100).
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
easeNoEasing (default easy_ease).
fromNoStart value % (default 0).
layerYesLayer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer.
newTrimNoAlways add a new Trim Paths instead of reusing an existing one in the group.
reverseNoSwap from/to (un-draw).
durationNoAnimation length (default 1 s).
propertyNoTrim property to animate (default end).
groupPathNoGroup to trim (default Contents root = whole layer).
influenceNoEase influence % (default 33.3; 60-80 = stronger ease).
startTimeNoWhen the animation starts (default layer in-point).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior1/5

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

The description states 'Existing keys on that property are replaced,' which is a destructive update. However, the annotations set destructiveHint=false, implying only additive behavior. This is a direct contradiction between the description and the structured annotation, so the behavioral transparency score is 1.

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?

The description is compact and front-loaded, starting with 'Convenience:' and the core action. Every sentence adds useful information about the draw-on behavior, property/reverse options, and keyframe replacement, with no unnecessary wording.

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 12-parameter mutation tool with no output schema, the description covers the core behavior, the main property/reverse variations, and the key side effect (replacement of existing keys). It is largely complete, though it does not address permissions or error conditions.

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 the schema already documents all 12 parameters. The description adds some meaning by clarifying that property='start' animates Start instead (wipe-off) and that reverse swaps from/to, but it does not significantly extend parameter semantics beyond the schema.

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?

The description states a specific verb and resource: 'add (or reuse) a Trim Paths in a shape group / Contents root and keyframe its End from 0 to 100 % over duration so strokes draw on.' It clearly identifies the draw-on animation effect and distinguishes it from generic keyframing or other animation tools.

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 terms like 'Convenience' and explains property/reverse variants, but it does not explicitly say when to use this tool versus alternatives like animate_property or add_keyframes. There are no stated exclusions or prerequisites.

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