Skip to main content
Glama

layer_convertType

Convert a Group, Bone, or Switch layer into another container type while preserving children, transforms, animation channels, masking, and Layer Comp membership.

Instructions

Convert a Group, Bone, or Switch layer to another container type preserving children, transforms, animation channels, masking, Layer Order, and Layer Comp membership.

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": {
      "targetType": "<targetType>"
    },
    "name": "layer_convertType"
  }
}

Input Schema

NameRequiredDescriptionDefault
layerIdNoNumeric depth-first layer ID (from layer_list)
newNameNoName for converted layer when deleteOriginal=false
layerNameNoExact layer name
layerUuidNoLayer UUID
targetTypeYes
frameByFrameNoEnable Frame-by-Frame when targetType='switch'
deleteOriginalNoDelete source layer after copying children/channels (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A3.8/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 disclosure burden; it does well on data preservation (children, transforms, animation channels, masking, Layer Order, Layer Comp membership), which is real behavioral value beyond the schema. It stops short of stating whether the operation is reversible, that the source layer may be destroyed by default, or any prerequisites/permission needs for a mutation of this weight.

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 no filler; every clause in the preservation list is substantive information an agent needs before committing to a lossy-looking transformation.

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 7-parameter mutation tool with no output schema and no annotations, the description covers the operation's scope and its side effects on existing data well. What remains thin is the destructive default and the semantics of converting to a bone or switch specifically (e.g., frameByFrame only applies to switch), which the schema hints at but the description never confirms.

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 86% and the enum on targetType is self-documenting, so the schema already does the heavy lifting. The description adds no per-parameter meaning — notably it never clarifies the source-layer selection trio (layerId/layerName/layerUuid) or the deleteOriginal/newName interaction, leaving it at the baseline.

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 ('Convert') and resource ('Group, Bone, or Switch layer') plus the exact target set ('group', 'bone', 'switch'), and enumerates what is preserved. No sibling tool performs conversion, so an agent can identify this tool's role without inspecting any 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?

The intent to change a layer's container type is unambiguous, but there is no explicit when-to-use framing, no guidance for choosing between targetType values, and no mention of the deleteOriginal branch even though it materially changes the outcome. Usage is implied by the purpose statement only.

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