Skip to main content
Glama

animation_setKeyframes

Batch-write multiple keyframes with Smooth, Linear, Ease, Step, Bezier, Cycle, Bounce, Elastic, or Stagger interpolation onto any supported Moho 14.4 animation channel, including separate dimensions.

Instructions

Batch-write multiple keyframes with Smooth/Linear/Ease/Step/Bezier (with handles)/Cycle/Bounce/Elastic/Stagger/Hold/ColorTag interpolation onto any supported Moho 14.4 animation channel (including Separate Dimensions).

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": {
      "channel": "<channel>",
      "keyframes": "<keyframes>"
    },
    "name": "animation_setKeyframes"
  }
}

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)
boneIdNoZero-based bone index inside the BoneLayer
channelYes
layerIdNoNumeric depth-first layer ID (from layer_list)
pointIdNoZero-based point index for point_pos/point_width/point_curvature
shapeIdNoZero-based shape index for shape_* / combo_blend channels
staggerNo
boneNameNoExact bone name
colorTagNoKeyframe color tag index (InterpSetting.tags)
intervalNoStep interval in frames (1 = ones, 2 = twos, 3 = threes)
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)
dimensionNoSeparate Dimension axis for vector channels (x, y, z)
groupNameNoVitruvian group name for vitruvian_active_bone
keyframesYes
layerNameNoExact layer name
layerUuidNoLayer UUID
shapeNameNoShape name for shape_* / combo_blend channels
curveIndexNoCurve index on point for point_curvature (default: 0)
groupIndexNoVitruvian group index for vitruvian_active_bone
additiveCycleNoEnable additive cycle accumulation
bezierInAngleNoBezier incoming tangent angle (radians, InterpSetting:SetBezierInAngle)
interpolationNo
bezierOutAngleNoBezier outgoing tangent angle (radians, InterpSetting:SetBezierOutAngle)
bezierInPercentNoBezier incoming handle percentage (InterpSetting:SetBezierInPercentage)
splitDimensionsNoSplit vector channel dimensions automatically if not already split
bezierOutPercentNoBezier outgoing handle percentage (InterpSetting:SetBezierOutPercentage)
cycleTargetFrameNoTarget loop frame when using Cycle interpolation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure. It describes the write capability and interpolation types but does not state whether existing keyframes are overwritten, what permissions are required, whether the operation is destructive, or how errors are handled.

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?

The definition is a single front-loaded sentence that efficiently names the operation, interpolation modes, channel scope, and Separate Dimensions support. It is somewhat dense and run-on, but every element contributes relevant information.

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?

This is a complex 30-parameter mutation tool with no annotations and no output schema. The one-sentence description covers the high-level write operation, but it omits usage context, overwrite behavior, prerequisites, and the relationships among channel, keyframes, and targeting parameters needed for confident invocation.

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 87%, so the schema already documents most parameters and the baseline is 3. The description mentions interpolation types, Bezier handles, and Separate Dimensions, but these are also represented in the schema enums and parameter descriptions, so it adds little parameter-level meaning beyond the structured data.

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 states a specific verb and resource: 'Batch-write multiple keyframes' onto 'any supported Moho 14.4 animation channel.' It adds interpolation modes and Separate Dimensions support, making the operation recognizable, but it does not explicitly distinguish this tool from siblings such as animation_createCycle or animation_tween.

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 explicit when-to-use guidance, no alternatives named, and no exclusions or prerequisites. The phrase 'Batch-write multiple keyframes' implies a bulk keyframe operation, but an agent must infer when this tool is preferable to animation_getKeyframes, animation_createCycle, or animation_tween.

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