Skip to main content
Glama

ae_add_layer

Adds a text, solid, null, adjustment, or shape layer to the top of an After Effects composition, shifting existing layers down one index.

Instructions

Adiciona uma camada no topo da comp (vira layer_index 1; as outras descem um índice). Texto nasce com a âncora na linha de base; para centralizar, use ae_set_layer_properties com justification='center' e center_anchor=true.

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_type": "<layer_type>"
    },
    "name": "ae_add_layer"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
textNoObrigatório para layer_type=text.
colorNo#RRGGBB: cor do sólido/shape ou do preenchimento do texto
widthNoSolid/shape; padrão = largura da comp.
heightNo
positionNo[x, y] em pixels
comp_nameNoNome exato da composição. Use este OU comp_index.
comp_indexNoÍndice do item no painel Projeto (base 1), como em ae_get_project_overview.
layer_typeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent mutation. The description adds genuinely non-obvious behavior beyond that: the new layer always lands at index 1 and pushes existing layers down, and text is created with a baseline anchor rather than centered. Missing are error/validation behavior (e.g., what happens with a bad comp reference) and whether the operation is undoable.

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?

Two sentences, both load-bearing: the placement/index behavior is front-loaded and the centering workaround follows. No filler, no restatement of the name.

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

Completeness3/5

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

For a 9-parameter mutation tool with no output schema and only 67% parameter coverage, the description covers the key side effect (index shifting) and the text-anchor nuance. It does not say what is returned (e.g., the new layer's index or name) or note prerequisites such as having an active comp, which an agent would need before chaining calls.

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 67%, with text, color, width, comp_name and comp_index already documented in the schema, so the baseline is 3. The description adds no parameter-level meaning beyond the text-anchor note, leaving 'name', 'height', 'position' and 'layer_type' semantics entirely to 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?

States a concrete verb and resource ("Adiciona uma camada") plus the resulting placement (top of comp, layer_index 1, others shift down). It also separates itself from the editing sibling by naming ae_set_layer_properties for the centering case, so an agent can tell the two apart without opening a schema.

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?

Provides a useful follow-up pointer (use ae_set_layer_properties with justification='center' and center_anchor=true to center text), which is a conditional routing hint. However, there is no guidance on choosing among layer_type values, on comp_name vs comp_index targeting, or on when to prefer this over other creation tools; usage is mostly implied.

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