Skip to main content
Glama
After Effects MCP for Antigravity

After Effects MCP for Antigravity

by okaybhargav

remove_layer

Removes a layer from an After Effects composition after explicit confirmation is set, letting you delete unwanted layers by name or index during automated project edits.

Instructions

Removes a layer from the composition. Requires confirm_removal: 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": {
      "confirm_removal": "<confirm_removal>"
    },
    "name": "remove_layer"
  }
}

Input Schema

NameRequiredDescriptionDefault
layer_nameNoName of the layer.
layer_indexNo1-based index of the layer.
composition_idNoOptional composition item ID.
confirm_removalYesMust be set to true to execute destructive layer removal.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden; it does disclose that the operation is destructive and gated behind confirm_removal: true, which is genuinely useful safety context. It does not say whether removal is undoable, what happens to the layer's effects/keyframes, or how errors surface for a bad layer_name/layer_index.

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 short sentences, zero filler, with the destructive action stated first and the mandatory precondition second. Nothing could be removed without losing information.

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 an unannotated destructive mutation with no output schema, the definition is minimal but not misleading: it names the action and the confirmation gate. It leaves gaps an agent would care about — reversibility, effect on layer contents, and which identifier parameter actually targets the layer.

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 100%, so the schema already documents all four parameters, including that confirm_removal must be true for destructive removal — the description's only parameter statement repeats this. It adds no resolution of the layer_name vs. layer_index ambiguity or when composition_id is needed.

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 ("Removes a layer from the composition"), which is unambiguous against siblings like remove_effect or remove_property_keyframe. It does not explicitly name a contrasting sibling or clarify scope (e.g., active composition vs. composition_id-targeted), so it stops short of a 5.

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?

No when-to-use or when-not guidance is given, and no alternatives are mentioned (e.g., set_layer_enabled to hide a layer instead of deleting it, or list_layers to resolve an index first). The only guidance is the confirm_removal prerequisite, which is a precondition rather than usage routing.

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