Skip to main content
Glama

layer_reparent

Move a layer into a Group, Bone, Switch, or Particle layer, or reorder it behind or in front of another layer to fix hierarchy and stacking order in Moho projects.

Instructions

Move a layer into a Group/Bone/Switch/Particle layer or reorder it behind or in front of another layer.

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

Input Schema

NameRequiredDescriptionDefault
layerIdNoNumeric depth-first layer ID (from layer_list)
layerNameNoExact layer name
layerUuidNoLayer UUID
insertAtTopNo
behindLayerIdNo
parentLayerIdNo
behindLayerNameNo
parentLayerNameNo
inFrontOfLayerIdNo
inFrontOfLayerNameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full burden for a mutation tool and largely fails to: it does not say whether the move is reversible, what happens to the layer's existing parent/index, whether cross-type moves are allowed, or what errors occur for invalid parents. The enumeration of valid parent types (Group/Bone/Switch/Particle) is the only real behavioral fact added.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single front-loaded sentence with no filler, and the two operating modes are clearly ordered. Its brevity is efficient in form, though the same brevity leaves gaps that the other dimensions penalize.

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

Completeness2/5

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

For a 10-parameter mutation tool with no annotations and no output schema, the description should explain how identification parameters combine and what the result looks like. Instead it only sketches the conceptual operations, leaving an agent unable to determine a valid call from the description alone.

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 coverage is only 30% across 10 parameters, and the description explains none of them by name. It loosely maps 'into a ... layer' to parentLayerId/parentLayerName and 'behind or in front of' to behindLayerId/inFrontOfLayerId, but leaves insertAtTop, layerUuid, and the required-combination logic (0 required params) entirely unexplained.

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 ('move') and resource ('layer') and distinguishes two modes: reparenting into a container layer type and reordering relative to another layer. It does not, however, differentiate itself from the sibling layer_setLayerOrder, which appears to cover the reorder half of this tool's behavior.

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?

There is no guidance on when to choose this tool over layer_setLayerOrder or layer_groupSelection, nor any prerequisites or exclusions. The one implicit hint is that only Group/Bone/Switch/Particle layers can act as parents, but the agent is left to infer when that applies.

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