Skip to main content
Glama

center-layers

Fix misaligned layers by centering one layer, selected layers, or all layers in an After Effects composition.

Instructions

Center one layer, selected layers, or all layers in a composition.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
allLayersNoCenter all layers in the composition.
compIndexYes1-based composition index.
layerNameNoTarget layer name when centering a single layer.
layerIndexNoTarget layer index when centering a single layer.
selectedOnlyNoCenter only selected layers in the composition.
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It only states the action ('Center') without revealing that this modifies layer positions, how centering is calculated (e.g., to composition center), or what happens when conflicting parameters (allLayers, selectedOnly, layerName) are combined. This lack of safety/edge-case context is a notable gap.

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 a single, front-loaded sentence that states the action and the three target scopes in a compact list. It contains no filler, wasted words, or redundant restating of the tool name.

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?

This is a mutation tool with five parameters, no output schema, and no annotations. The description is too terse to be complete: it does not specify how centering is applied, what happens with conflicting options, or what the result/return value is. For an agent to invoke this correctly, additional behavioral details are necessary.

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?

The schema description coverage is 100%, with each parameter individually described, so the schema does the heavy lifting. The description adds minimal semantic value beyond mapping the scopes ('one layer' to layerName/layerIndex, 'selected layers' to selectedOnly, 'all layers' to allLayers), but it does not explain parameter combinations or precedence rules, which would be useful 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 uses a specific verb ('Center') and clearly specifies the resource and scope: 'one layer, selected layers, or all layers in a composition.' It distinguishes the tool's function from sibling tools, none of which mention centering.

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 when to use the tool (when centering layers is needed) but provides no explicit guidance on when not to use it or alternatives. It also does not clarify the precedence of parameters like allLayers vs selectedOnly, or layerName vs layerIndex, leaving potential ambiguity.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/omar-hesham/after-effect-mcp-with-claude'

If you have feedback or need assistance with the MCP directory API, please join our Discord server