Skip to main content
Glama

Delete items

delete_items
Destructive

Remove project items from After Effects and all compositions that use them, optionally including folder contents; deletion is undoable.

Instructions

Delete project items (removes them from every comp that uses them). Non-empty folders need allowNonEmptyFolders:true (their contents are deleted too). Undoable in AE. Returns what was removed.

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": {
      "items": "<items>"
    },
    "name": "delete_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesOne item ref, an array of refs (name, 'Folder/Name' path, or item id), or 'selected' (project panel selection).
allowNonEmptyFoldersNoAllow deleting folders together with their contents.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, and the description adds real value on top: cascade effect across comps, folder contents being deleted as well, and that the operation is undoable in AE. It also notes the return payload, though it doesn't mention any permission or irreversibility caveats.

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?

Three compact sentences, front-loaded with the action and its blast radius, then the folder constraint, then undoability and return. Nothing redundant; parentheticals carry the important side effects without padding.

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

Completeness5/5

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

For a two-parameter destructive tool with full schema coverage and no output schema, the description covers the cascade behavior, the folder edge case, undo support, and the shape of the response. An agent has everything needed to invoke it safely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds consequence-level meaning the schema lacks: allowNonEmptyFolders doesn't just permit folders, it means their contents are deleted too. The 'items' semantics are left entirely to the schema.

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 ('Delete project items') plus a crucial scope note: removal propagates to every comp using the item. That distinguishes it from layer/shape deletion siblings, though it never names an alternative explicitly.

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 a conditional usage rule for folders ('Non-empty folders need allowNonEmptyFolders:true') which helps the agent decide how to call it, but offers no guidance on when to pick this over delete_layers or other removal tools, and no exclusions.

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