Skip to main content
Glama

Delete mask

delete_mask
Destructive

Remove specific masks by index or name from an After Effects layer, or clear every mask on it with all=true. Targets a layer by index, name, or selected state.

Instructions

Delete one or more masks from a layer (by index/name), or all masks with all=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": "<layer>"
    },
    "name": "delete_mask"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoDelete every mask on the layer.
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
maskNoMask(s) to delete: index, name, or an array.
layerYesLayer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true and readOnlyHint=false, so the description only needs to add context. It confirms the destructive scope by noting that all=true wipes every mask on the layer, which is useful, but says nothing about irreversibility, undo availability, or what happens if a named mask does not exist — the details that matter most for a destructive operation.

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 front-loaded sentence that puts the verb and resource first and the alternative mode last, with no filler or repetition. 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 a four-parameter destructive tool with no output schema, the definition is serviceable but thin: it covers what gets deleted yet omits failure behavior, idempotency, and any post-delete state an agent would need. The rich schema compensates for the parameter side, but the behavioral side remains under-described for a delete operation.

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 every parameter including the layer selector formats and the mask anyOf is already documented in the schema. The description merely restates index/name and all=true, adding no format or edge-case meaning beyond the structured data, making the baseline 3 correct.

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 names a specific verb and resource ('Delete one or more masks from a layer') plus the two supported selection modes, which separates it from siblings like delete_layers and delete_shape_content that operate on different objects. It stops short of explicitly naming an alternative tool, so it lands at 4 rather than 5.

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 implicitly defines two invocation modes — targeted deletion by index/name versus wholesale deletion via all=true — which is real routing guidance for the caller. However, it never states when to prefer this over add_mask/convert_mask_to_shape workflows, nor any precondition (e.g. layer must be unlocked or contain masks).

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