Skip to main content
Glama

ae_center_layers

Center selected or specified After Effects layers on any axis, moving anchor points to the visual content center so text and shapes align correctly in one undo step.

Instructions

Center layers in the composition. By default the anchor point is moved to the visual center of the layer content first (sourceRectAtTime), so text and shapes end up truly centered. One undo step.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
allNoCenter every layer.
axisNo
compNoComposition name or numeric item id. Omit to use the active composition.
anchorNoMove the anchor point to the content center first (default true).
layersNoLayer names/indices. Omit to use the selected layers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.8/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 reasonably well: it discloses that the anchor point is mutated by default, that centering is based on visual content bounds rather than the bounding box, and that the whole operation collapses into 'one undo step' — useful for an agent reasoning about reversibility. Gaps remain: no mention of how expressions or parenting on position/anchor are treated, and no statement of what is returned.

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?

Three compact sentences, front-loaded with the action, then the non-obvious default behavior, then the undo cost. No filler, nothing repeated from the schema.

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 simple transform tool with no annotations and no output schema, the description covers the action, the default anchor behavior, and the undo footprint — enough to invoke safely. It does not describe return values, which the agent must infer since no output schema exists, and axis values go unexplained in both places.

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 80%, so the schema already documents all, comp, anchor, and layers; the only undocumented parameter is axis. The description adds nuance about the anchor parameter's default (true) and its sourceRectAtTime behavior, but does not compensate for the missing axis documentation. Baseline 3 is appropriate.

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 and resource ('Center layers in the composition') and immediately explains the mechanism that makes the operation non-obvious (anchor point moved to content center via sourceRectAtTime). No sibling tool performs centering, so there is nothing to differentiate from. An agent can tell exactly what this does.

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?

The description never says when to reach for this tool versus manipulating position/anchor through ae_set_property, nor does it state prerequisites or exclusions. The only 'guidance' is default-value behavior (anchor defaults to true), which is parameter semantics, not usage context.

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