Skip to main content
Glama

layer_duplicate

Duplicate a layer or create a synced reference layer in Moho Pro projects so MCP clients can reuse artwork while keeping source-linked edits.

Instructions

Duplicate a layer (or create a live Moho Referenced Layer when asReference=true).

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

Input Schema

NameRequiredDescriptionDefault
layerIdNoNumeric depth-first layer ID (from layer_list)
newNameNo
layerNameNoExact layer name
layerUuidNoLayer UUID
asReferenceNoCreate a synced Moho Reference Layer instead of an independent copy (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose the key behavioral distinction that asReference produces a 'live' synced layer rather than an independent copy, which is genuinely useful. However, it omits where the duplicate is inserted (adjacent to source?), whether it inherits parent/bone bindings, and whether the operation is reversible or requires a selected layer.

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?

A single, front-loaded sentence with zero filler; the main action comes first and the mode variant is parenthesized as secondary detail. Nothing could be trimmed without losing information.

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 5-parameter mutation tool with no annotations and no output schema, the description covers the interesting boolean flag but leaves the identifier-selection strategy and the result (new layer id/name?) unaddressed. Adequate to attempt a call, not fully sufficient to call it confidently.

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 coverage is 80%, so most parameters are already documented and the baseline of 3 applies. The description adds conceptual meaning to asReference (synced vs independent) beyond the schema's wording, but says nothing about the three alternate identifiers (layerId/layerName/layerUuid) with 0 required params, nor what newName does — the one parameter with no schema description.

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 names a specific verb and resource ('Duplicate a layer') and adds a second mode ('create a live Moho Referenced Layer when asReference=true'). It is clearly distinguishable from siblings like layer_create or layer_referenceManage by being a copy operation, though it never explicitly contrasts itself with them.

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?

The description gives one piece of conditional guidance: use asReference=true to get a synced layer instead of an independent copy. It gives no guidance on when to prefer this over layer_create, layer_referenceManage, or layer_groupSelection, and no prerequisites for targeting the source layer.

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