Skip to main content
Glama

layer_setTransform

Set a layer's translation, rotation, and scale at a specified animation frame, changing only the transform properties you provide.

Instructions

Set the transform (translation, rotation, scale) of a layer at a specific frame. All transform params are optional — only supplied values are changed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
frameYesThe frame number to set the keyframe at
scaleXNoLayer X scale
scaleYNoLayer Y scale
transXNoLayer X translation
transYNoLayer Y translation
layerIdYesThe numeric ID of the layer
rotationNoLayer rotation in radians
Behavior3/5

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

With no annotations, the description must carry the transparency burden. It does disclose a key behavior: all transform params are optional and only supplied values are changed. However, it fails to mention whether a new keyframe is created or an existing one overwritten, what happens to other transform properties, or the return value. This leaves some ambiguity.

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 a single concise sentence that front-loads the primary purpose and immediately adds the critical behavioral note. No wasted words.

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?

The description is adequate for a basic understanding but lacks details about keyframe behavior, return values, and interaction with existing animation data. Given 7 parameters and no annotations/output schema, a bit more context would be valuable.

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?

Schema coverage is 100%, so the baseline is 3. The description adds the note 'only supplied values are changed', which clarifies partial-update semantics beyond what the schema's required list implies. This enriches parameter understanding.

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 clearly specifies the action (set transform), the resource (layer), and the context (at a specific frame). It distinguishes from siblings like bone_setTransform by targeting layers, and from animation_setKeyframe by focusing specifically on transform properties.

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 clearly implies use for setting a layer's translation/rotation/scale at a given frame. While it doesn't explicitly mention alternatives or exclusions, the sibling naming makes the distinction obvious (layer vs bone, transform vs other properties).

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