Skip to main content
Glama
After Effects MCP for Antigravity

After Effects MCP for Antigravity

by okaybhargav

set_layer_transform

Modify a layer's position, scale, rotation, opacity, and anchor point in After Effects using its name or index, with optional composition targeting.

Instructions

Modifies transform properties of a layer (Position, Scale, Rotation, Opacity, Anchor Point).

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

Input Schema

NameRequiredDescriptionDefault
scaleNo[X, Y] or [X, Y, Z] percentage scale (e.g. [100, 100]).
opacityNoOpacity percentage (0-100).
positionNo[X, Y] or [X, Y, Z] position.
rotationNoRotation in degrees.
layer_nameNoName of the layer.
layer_indexNo1-based index of the layer.
anchor_pointNo[X, Y] or [X, Y, Z] anchor point.
composition_idNoOptional composition item ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With zero annotations, the description carries the full behavioral burden and discloses little. It does not say whether properties not supplied are left unchanged, whether the operation is undoable, whether it replaces or offsets existing keyframes, or what happens if no transform property is provided at all.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though its brevity comes at the cost of the behavioral and usage detail an 8-parameter mutation tool needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with 8 parameters, no annotations, and no output schema, the definition is thin. It never explains how the target layer is resolved when both layer_name and layer_index exist, nor what the tool returns or how a partial update behaves.

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 every parameter (scale, opacity, position, rotation, layer_name, layer_index, anchor_point, composition_id) is already documented in the schema, including units and formats. The description merely restates the same property list without adding format or precedence details, so the baseline 3 applies.

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?

States a specific verb and resource ("Modifies transform properties of a layer") and enumerates the affected properties, so the operation is unambiguous. It stops short of differentiating itself from siblings, notably set_layer_opacity, which overlaps directly with the opacity property named here.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use guidance is given: no prerequisites (must a layer be selected or a composition active?), no indication of whether transform values are absolute or relative, and no routing away from the overlapping sibling set_layer_opacity. The agent must infer all of this from the schema alone.

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