Skip to main content
Glama

ae_remove_layers

Destructive

Delete layers from an After Effects composition by layer index, with Cmd+Z undo support.

Instructions

Apaga camadas pelos índices (pode desfazer com Cmd+Z no AE). Confirme com o usuário se as camadas não foram criadas nesta sessão.

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_indexes": "<layer_indexes>"
    },
    "name": "ae_remove_layers"
  }
}

Input Schema

NameRequiredDescriptionDefault
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_indexesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=false, so the safety profile is covered; the description adds genuine context beyond them by disclosing that the deletion is undoable via Cmd+Z in AE and by adding a human-confirmation protocol. It still omits what occurs on an out-of-range or stale index, which is the main residual behavioral 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?

Two short sentences, both front-loaded and both carrying actionable information (undo path, confirmation protocol). Nothing is redundant or padded.

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 destructive, non-idempotent mutation tool with no output schema, the description covers undo and confirmation but leaves the highest-risk detail unaddressed: layer-index semantics and behavior on invalid/stale indexes. It is adequate to call the tool safely at a coarse level but not complete for correct invocation.

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 coverage is 67%: comp_name and comp_index are already documented in the schema, and layer_indexes has no schema description at all. The description only echoes that layers are targeted 'by indexes' and does not clarify index ordering/base (in AE layer index 1 is the topmost layer, a frequent source of error) or what happens to invalid indexes, so it does not compensate for the coverage gap.

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 ('Apaga camadas pelos índices'), which is unambiguous and clearly distinct from the additive siblings such as ae_add_layer and ae_apply_effect. It does not name any sibling or scoping alternative, so differentiation is inferable rather than explicit.

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?

Gives one concrete usage rule: confirm with the user before deleting layers that were not created in this session. That is real when-to-be-careful guidance, but there is no routing to alternatives (e.g. restoring via ae_add_layer) and no statement about when this tool is inappropriate versus other mutation tools.

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