Skip to main content
Glama

Duplicate layer

duplicate_layer

Create a copy of a layer, place it above the original, and set the copy as the active layer.

Instructions

Duplicate a layer (placed above it, becomes active).

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

Input Schema

NameRequiredDescriptionDefault
nameNo
layerNoLayer id, name, or index (0 = bottom, -1 = top). Default: the active layer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden, and it does disclose two important effects: the duplicate is placed above the original and becomes active. However, it does not explain what gets copied, how the new layer is named, or what is returned, leaving significant mutation behavior unspecified.

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?

The description is a single efficient sentence with the core action and placement/active-state details front-loaded. No wording is wasted.

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 simple two-parameter tool, the description conveys the essential operation and the most notable side effects. It is still incomplete because the optional name parameter is unexplained and the copy semantics are left implicit.

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

Parameters2/5

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

Schema description coverage is only 50%: the layer parameter is documented in the schema, but the name parameter is not described anywhere. The description adds no parameter-level meaning, so it fails to compensate for the undocumented name argument.

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?

Uses a specific verb and resource: "Duplicate a layer." It also adds useful scope by clarifying the copy is placed above the source and becomes active, though it does not explicitly distinguish itself from sibling operations like add_layer.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

Provides no explicit when-to-use guidance, prerequisites, or alternatives. The description implies the tool is for copying an existing layer, but it does not say when to choose duplicate_layer over add_layer or another layer-creation path.

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