Skip to main content
Glama

Reorder layer

move_layer

Reorder layers in an After Effects composition by moving a layer to a specific index, top or bottom, or directly above or below another layer.

Instructions

Change a layer's position in the layer stack: to an index (1 = top), 'top', 'bottom', or directly before (above) / after (below) another layer.

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": {
      "layer": "<layer>"
    },
    "name": "move_layer"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoTarget index (1 = top) or 'top'/'bottom'.
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
afterNoPlace directly below this layer.
layerYesLayer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer.
beforeNoPlace directly above this layer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds the index orientation (1 = top) and the above/below interpretation of before/after, which is genuine behavioral context, but says nothing about what happens when the target layer is missing or whether other layers shift to fill the 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?

A single sentence, front-loaded with the action and immediately followed by the accepted target forms. Every clause carries information; there is no filler or repetition of the title.

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 5-parameter, non-destructive mutation with full schema coverage and no output schema, the description covers the core semantics adequately. The one meaningful omission is conflict handling among the to/before/after placement parameters, which an agent could plausibly get wrong.

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 description coverage is 100%, so the baseline is 3, but the description earns a bump by disambiguating the easily confused before/after pair as above/below and by tying 'top'/'bottom' to the layer stack. It still does not address whether to/before/after are mutually exclusive or which wins if several are supplied.

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+resource ("Change a layer's position in the layer stack") and enumerates the exact targeting modes (index, 'top', 'bottom', before/after another layer). This clearly separates it from siblings like move_items and reorder_effect, which operate on different objects.

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 usage by spelling out the four ways to target a position, which helps an agent pick a mode. However, it never says when to prefer this over move_items or how to choose between absolute index vs relative before/after placement, so guidance stays implied rather than explicit.

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