Skip to main content
Glama

animation_setKeyframe

Set a keyframe value on any Moho layer animation channel at a specified frame. Supports numbers for rotation, opacity, shear and {x, y} objects for translation, scale.

Instructions

Set a keyframe value on an animation channel. For vec2 channels (translation, scale), pass value as {x, y}. For scalar channels (rotation, opacity, shear), pass a number.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
frameYesThe frame number to set the keyframe at
valueYesThe keyframe value — number for scalar channels, {x, y} for vec2 channels
channelYesThe animation channel name (e.g. "translation", "rotation", "scale", "opacity", "shear")
layerIdYesThe numeric ID of the layer
Behavior2/5

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

There are no annotations, so the description must disclose side effects or return behaviors. It only describes the input format (vec2 vs scalar) and does not mention overwriting existing keyframes, error conditions, or whether the tool mutates state persistently. This leaves the agent without information about potential consequences.

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?

The description is two sentences, front-loaded with the main action, and contains no redundant 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 4-parameter tool with no output schema and no annotations, the description is somewhat minimal. It covers the critical value shape nuance but omits potential behavioral details like overwrite semantics or failure modes, making it adequate but not rich.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema covers all four parameters with 100% coverage. The description builds on this by explicitly listing which channel types (translation, scale) use vec2 values and which (rotation, opacity, shear) use scalar numbers, adding clarity beyond the schema's anyOf definition.

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?

The description starts with 'Set a keyframe value on an animation channel,' clearly stating the verb and resource. It distinguishes from sibling tools like animation_getKeyframes, animation_deleteKeyframe, and animation_setInterpolation by specifying the setting action.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for when to use the tool: whenever you need to set a keyframe value. It also gives channel-specific value format guidance, which helps the agent avoid errors. However, it does not explicitly mention alternatives or prerequisites, so it stops short of a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/neosh11/moho-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server