Skip to main content
Glama

Delete layers

delete_layers
Destructive

Delete layers from a composition by index, name, or selection; locked layers are refused unless force=true, and removed layers are returned.

Instructions

Delete layers from a composition. Locked layers are refused unless force=true. Returns what was removed.

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_layers"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
forceNoAlso delete locked layers.
layersNoLayers: array of layer refs, or 'selected' (default) or 'all'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known; the description still earns credit by disclosing the locked-layer refusal rule and the force override, plus the fact that a report of removals is returned. It does not cover irreversibility or partial-failure behavior, which would be needed for a 5.

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 short sentences, front-loaded with the action, then the exception, then the return. There is no filler or repetition.

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

Completeness4/5

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

With 3 optional params, full schema coverage, and no output schema, the description covers the action, the key exception, and the return shape (removed layers). Only irreversibility/undo guidance is missing for a destructive tool.

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%, including the default of 'selected' for layers and the meaning of force, so the baseline is 3. The description adds only the consequence framing of force (locked layers are refused without it), which is modest value beyond 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?

The description gives a concrete verb and resource ("Delete layers from a composition"), so the agent knows exactly which object type is affected. It does not distinguish itself from sibling mutators such as delete_items or delete_mask, which keeps it 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the verb and by the locked-layer caveat, but the description never states when to reach for this instead of a sibling delete tool or what the prerequisites are. It gives conditional behavior (force) rather than selection guidance.

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