Skip to main content
Glama

align_layers

Align After Effects layers to a chosen edge or reference layer to position them consistently within a comp.

Instructions

Align layers to an edge. edge: left|right|top|bottom|center-h|center-v. reference: "comp" (default) | "first" | "last" | layer name/index.

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": {
      "edge": "<edge>"
    },
    "name": "align_layers"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComp: name (string), or { id: N } for duplicate-name-safe stable-id addressing. Defaults to active comp.
edgeYes
layersNoOne or many layers (each: name, 1-based index, or { id: N }). If omitted, uses currently selected layers.
instanceNoTarget a specific AE when more than one is connected (e.g. "2026", "2025", or a major like "26"). Omit when only one AE is open — see list_instances.
referenceNo"comp" | "first" | "last", or a layer (name, 1-based index, or { id: N }).comp

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations exist, so the description carries the full burden for a mutation tool, yet it says nothing about whether layers are moved destructively, whether the operation is undoable, or what happens to layers whose bounding boxes are rotated or nested. It also omits that omitting 'layers' falls back to the current selection and that multi-instance disambiguation lives in 'instance'.

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 and telegraphic: the action comes first, followed by compact parameter hints. No filler sentences, though the terse fragments read more like schema notes than an explanatory description.

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?

With five parameters, no annotations, no output schema, and a fallback-to-selection default plus multi-instance routing, the description is too thin. The critical behaviors an agent needs — selection fallback and instance targeting — appear only in the schema, not in the description.

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 edge, reference, layers and instance thoroughly. The description restates the edge enum and reference values without adding format or edge-case meaning (e.g. how 'center-h' differs from alignment on a rotated layer), so it sits at the baseline.

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 ('Align layers to an edge') and enumerates the edge values, so the core action is unambiguous. It does not differentiate itself from the sibling align_to_targets or distribute_layers, so an agent must infer which alignment tool applies.

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 'edge' and 'reference' hints imply the intended alignment scenario, but there is no explicit when-to-use statement, no when-not, and no pointer to align_to_targets for alignment to non-comp targets. Guidance is implied rather than stated.

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