Skip to main content
Glama

delete_layer

Deletes one or more After Effects layers by name, index, or stable ID, so duplicate names can be resolved and the intended layer is removed.

Instructions

Delete one or more layers. When names may collide, address by stable id ({ id: N }) so the right layer is hit.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "delete_layer"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComp: name (string), or { id: N } for duplicate-name-safe stable-id addressing. Defaults to active comp.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it does disclose one real trait: deleting by name is unsafe under duplicate names and stable ids avoid hitting the wrong layer. It says nothing about irreversibility, undo, or what happens when a referenced layer does not exist — meaningful gaps for a destructive mutation.

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 essential: the action first, then the identity-safety caveat. There is no filler, no restatement of the title, and the important condition is placed where an agent will read it before constructing arguments.

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?

With three optional parameters, no annotations, and no output schema, the definition covers the call signature adequately but is thin on consequences. For a destructive tool with zero annotation coverage, an agent still cannot tell whether deletion is reversible or how partial failures across multiple layers are reported.

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 the name/index/id forms and the active-comp and instance defaults. The description restates the stable-id rationale for the layers parameter but adds no detail the schema lacks, so it sits at the baseline rather than above it.

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?

The description opens with a specific verb and resource ('Delete one or more layers'), which is unambiguous and clearly separable from siblings like duplicate_layer or describe_layer. It stops short of explicitly naming the sibling it differs from, but the action itself is decisive enough that no agent would confuse it.

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?

It gives one conditional usage rule: use `{ id: N }` when layer names may collide. That is addressing guidance rather than when-to-delete-vs-alternatives guidance; nothing tells the agent how to confirm a layer should be removed, and the fallback behavior (omitted layers → current selection) lives only in the schema, not the description.

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