Skip to main content
Glama

Duplicate layer

duplicate_layer

Duplicate a layer with its effects, masks, and keyframes one or more times, placing copies directly above the original.

Instructions

Duplicate a layer (with effects, masks, keyframes) one or more times. Copies are placed directly above the original.

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": "duplicate_layer"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
countNoNumber of copies (default 1).
layerYesLayer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer.
newNameNoName for the copies. With count>1, ' 1', ' 2'... is appended, or '#' is replaced by the number.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful context the annotations cannot: copies inherit effects/masks/keyframes and are inserted directly above the original. It stops short of saying whether the new layers become selected or what identifiers they receive.

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, no filler, with the informative part (what gets copied and where copies land) kept rather than padding. Nothing could be removed without losing meaning.

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?

For a simple mutation with no output schema and full param coverage, the description supplies the two facts an agent most needs: content preservation and insertion position. The only real gap is the return value (new layer reference/index), which is a minor omission at this complexity.

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 layer addressing, count bounds (1-500), comp resolution, and the '#'-substitution naming rule are all already documented in the schema. The description's 'one or more times' lightly echoes count, and it says nothing about newName or comp, so it adds little beyond structured data — baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Duplicate a layer') and scopes it further by naming what is carried over (effects, masks, keyframes). The word 'layer' cleanly separates it from duplicate_comp and duplicate_effect among its siblings, so an agent can pick it without opening the schema.

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 operation itself — you call it when you want a copy of an existing layer rather than creating a new one. However, there is no explicit when-to-use/when-not guidance, no mention of alternatives such as create_* or add_layer_from_item, and no prerequisite information.

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