Skip to main content
Glama

setLayerKeyframe

Set a keyframe on an After Effects layer property at a given time. Add two or more keyframes on the same property to animate it.

Instructions

Set a keyframe on a layer property at a given time. Add two or more keyframes on the same property to animate it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueNoValue: [x,y] for Position, [w,h] percent for Scale, degrees for Rotation, percent for Opacity.
compIndexYes1-based index of the composition in the Project panel (see getProjectInfo / listCompositions).
layerIndexYes1-based index of the layer within the composition.
propertyNameYesProperty to keyframe: 'Position', 'Scale', 'Rotation' or 'Opacity'.
timeInSecondsYesTime of the keyframe, in seconds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0-ibintec.1

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses the animation intent, but says nothing about whether an existing keyframe at that time is overwritten, what permissions or undo state apply, or any side effects of mutating the property.

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?

Two short sentences, action front-loaded, no redundant or filler text. Every clause carries 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 5-parameter mutation tool with no annotations and no output schema, the description covers the core action but omits overwrite behavior, error conditions, and return information. Adequate but with clear gaps.

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 coverage is 100%, so every parameter including the value-unit conventions is already documented in the schema. The description adds 'at a given time' but no format or semantic detail beyond what the schema provides, so the baseline 3 applies.

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 (Set) and resource (a keyframe on a layer property) plus the temporal scope, which is enough to separate it from apply-effect or setLayerExpression. It stops short of explicitly contrasting those siblings, so it is not a 5.

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 second sentence implies usage ('Add two or more keyframes on the same property to animate it'), giving a hint about intent but no explicit when-to-use, prerequisites, or when to prefer an alternative tool such as setLayerExpression.

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