Skip to main content
Glama

duplicate_layer

Copy a layer and all its child layers directly above the original, optionally assigning a new name, then return the copy's path.

Instructions

Copy a layer (a group with all its children) right above the original.

The copy is named new_name, or " copy". Returns the copy's path.

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": {
      "path": "<path>",
      "layer": "<layer>"
    },
    "name": "duplicate_layer"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesSprite file. Relative paths resolve against the server root.
layerYesLayer name, or a 'group/child' path for nested layers
new_nameNoNew layer name

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does real work: it discloses the insert position of the copy, the default naming scheme ("<name> copy"), and that the original is preserved. It omits error behavior (e.g., nonexistent layer path) and whether the new copy becomes selected, but the core mutation semantics are stated.

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 with no wasted wording — purpose and placement first, then naming and return value. Every clause carries information.

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?

An output schema exists, so detailed return documentation is unnecessary, and the description still notes it returns the copy's path. For a three-parameter mutation tool with no annotations, the only meaningful gap is failure/permission behavior.

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 genuine meaning beyond the schema: it explains the default value behavior when new_name is omitted ("<name> copy") and clarifies that the layer parameter can denote a whole group including its children. That is useful semantic enrichment rather than restatement.

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 specific verb and resource ("Copy a layer") and immediately disambiguates what a layer means here: "a group with all its children," plus the placement ("right above the original"). It stops short of naming the closest sibling (copy_layers) so the agent must infer the distinction from the name alone.

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 only implied: the agent can infer this is the 'duplicate one layer in place' operation, and the phrase 'right above the original' hints at a positional variant. There is no explicit when-to-use or when-not-to-use guidance relative to copy_layers or add_layer.

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