Skip to main content
Glama
SUBSAHARXN

After Effects MCP Server

by SUBSAHARXN

compile-lottie-comp

Prepares After Effects compositions for Lottie export by baking expressions, converting text and vector layers to shapes, flattening 3D, and stripping unsupported effects.

Instructions

Restructure and compile an After Effects composition to make it 100% Lottie-compliant. Clones the composition safely to [CompName]_LottieReady, auto-bakes expressions into discrete keyframes (resolving sourceRectAtTime/valueAtTime/wiggle runtime errors), converts text and vector footage to native shape layers, flattens 3D switches, and strips unsupported raster effects.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
compNameNoName of target composition (alternative to compIndex).
compIndexNo1-based index of target composition. Defaults to active comp.
flatten3DNoDisable 3D layer switches to prevent 2D Lottie player glitches (default: true).
outputCompNameNoCustom name for compiled composition. Defaults to '[OriginalName]_LottieReady'.
bakeExpressionsNoBake all dynamic expressions into discrete keyframes (default: true).
convertTextToShapesNoConvert text layers into vector shape layers (default: true).
removeDisabledLayersNoRemove disabled or hidden layers to optimize file size (default: true).
removeUnsupportedEffectsNoRemove raster effects that cannot render in vector Lottie (default: true).
convertVectorFootageToShapesNoConvert Illustrator/EPS vector layers into native shape layers (default: true).
removeAudioAndAdjustmentLayersNoStrip adjustment layers and audio layers (default: true).

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?

With no annotations, the description carries the full burden and does so well: it discloses that the source comp is cloned (non-destructive), names the default output name, and enumerates exactly what gets transformed or stripped (expressions baked, text/vector converted, 3D flattened, raster effects removed). It does not mention return values, failure modes, or whether the original comp is ever modified beyond the clone.

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?

Front-loaded with the purpose in the first clause, followed by a tight enumeration of transformations. Dense but every clause carries information; the long comma-separated list is the only mild readability cost.

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 10-parameter, zero-annotation, no-output-schema mutation tool, the description covers the important transformations and their defaults. It leaves gaps only on return value and any preconditions on the target comp, which are minor for this operation.

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 is 3, but the description adds real meaning to several flags: bakeExpressions is tied to resolving sourceRectAtTime/valueAtTime/wiggle runtime errors, and flatten3D is tied to preventing 2D player glitches. That rationale helps an agent decide whether to override the defaults.

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 pair (restructure and compile), the resource (After Effects composition), and the concrete outcome (100% Lottie-compliant). It is clearly distinguishable from siblings like audit-lottie-compliance and export-lottie-json, which check or export rather than transform.

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 the tool is used as a pre-export fix-up step but never states when to choose it over audit-lottie-compliance or export-lottie-json, nor any prerequisites. Usage is inferable from the 'make it 100% Lottie-compliant' framing but no alternative is named.

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