Skip to main content
Glama

layer_setLayerOrder

Inspect or keyframe Animated Layer Order for Group, Bone, or Switch layers at any frame—including Smart Bone Actions—to control child stacking and interpolation.

Instructions

Inspect or keyframe Animated Layer Order (GroupLayer:EnableLayerOrdering / GetLayerOrdering) on a Group/Bone/Switch layer at any frame (works inside Smart Bone Actions).

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

Input Schema

NameRequiredDescriptionDefault
holdNoFrames to hold prior value before interpolating
val1NoInterpSetting.val1 (relative cycle delta or noisy/bounce/elastic param)
val2NoInterpSetting.val2 (absolute cycle target frame when >= 0, -1 for relative)
frameNo
orderNoChild layer names, IDs, or UUIDs (bottom-to-top unless topToBottom=true)
enabledNoEnable/disable Animated Layer Order
layerIdNoNumeric depth-first layer ID (from layer_list)
staggerNo
colorTagNoKeyframe color tag index (InterpSetting.tags)
intervalNoStep interval in frames (1 = ones, 2 = twos, 3 = threes)
positionNoRelative move target
cycleBackNoRelative frame delta for Cycle interpolation (default: frame - 2, loops back to Frame 2)
cycleModeNoCycle targeting mode: 'relative' (val1 delta, val2=-1) or 'absolute' (val2 frame)
layerNameNoExact layer name
layerUuidNoLayer UUID
moveLayerIdNoRelative move: child layer ID
topToBottomNoInterpret `order` array as top-to-bottom instead of bottom-to-top
allowPartialNoAuto-append omitted children keeping relative order (default: true)
additiveCycleNoEnable additive cycle accumulation
bezierInAngleNoBezier incoming tangent angle (radians, InterpSetting:SetBezierInAngle)
interpolationNo
moveLayerNameNoRelative move: child layer name
bezierOutAngleNoBezier outgoing tangent angle (radians, InterpSetting:SetBezierOutAngle)
bezierInPercentNoBezier incoming handle percentage (InterpSetting:SetBezierInPercentage)
bezierOutPercentNoBezier outgoing handle percentage (InterpSetting:SetBezierOutPercentage)
cycleTargetFrameNoTarget loop frame when using Cycle interpolation
referenceLayerIdNo
referenceLayerNameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations, so the description carries the full behavioral burden, and it falls well short: it doesn't say whether calling with only `layerId` is a safe read versus a write, whether reordering children is destructive, what animation/keyframe data is created or overwritten, or whether an undo step is produced. The only real behavioral disclosure is the Smart Bone Action compatibility, which is useful but far from sufficient for a 28-param mutation tool.

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?

A single front-loaded sentence with no filler. The parenthetical API names are arguably noise for an agent, but they are compact and ground the tool in the host application's terminology.

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?

With 28 optional parameters, no annotations, and no output schema, one sentence cannot make this callable correctly. Critical information is absent: which parameter combinations trigger a reorder versus a keyframe versus a plain inspection, and what the return looks like when inspecting.

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 82%, so the schema already documents most parameters (interpolation enums, bezier handles, cycle fields), which sets the baseline at 3. The description adds nothing parameter-specific — no explanation of how `order`/`position`/`moveLayer*` interact or which param groups are mutually exclusive.

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?

Names a specific resource (Animated Layer Order, with the underlying `GroupLayer:EnableLayerOrdering` / `GetLayerOrdering` APIs) and constrains the target to Group/Bone/Switch layers. The dual 'Inspect or keyframe' framing is clear enough, though it never explicitly says the tool can reorder children, which is what most of the parameters (`order`, `topToBottom`, `position`, `moveLayerId`) actually drive.

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?

Provides real applicability constraints — only Group/Bone/Switch layers, and it works inside Smart Bone Actions. But it never states when to pick this over a sibling like layer_setProperties, nor does it say what happens if called on another layer type or when inspection ends and mutation begins.

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