Skip to main content
Glama

camera_setKeyframe

Set camera track, zoom, roll, and pan/tilt keyframes at a specific frame, with optional interpolation settings to control how motion between keys is timed.

Instructions

Set camera track, zoom, rollDeg, and/or panTiltDeg keyframes with optional interpolation.

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": "camera_setKeyframe"
  }
}

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)
zoomNo
frameNo
trackNo
rollDegNo
staggerNo
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)
panTiltDegNo
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)
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?

With no annotations, the description carries the full burden and discloses almost nothing behavioral. For a 20-parameter mutation tool, it doesn't say whether existing keys are replaced, what happens to unspecified channels, how 'frame' defaults, or what the call returns. 'Optional interpolation' is the only behavioral hint, and it merely restates the interpolation enum.

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, naming the act and the keyable channels immediately. It is efficient, though its brevity reflects under-specification rather than tight editing of richer content.

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?

Given 20 parameters, nested objects, zero annotations, and no output schema, the description is far too thin. An agent gets no signal about required frame handling, interpolation parameter interplay, or side effects on existing keyframes, all of which it needs to call this correctly.

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 65%, so the schema already documents most parameters, including the cycle and bezier settings. The description adds only that four specific channels can be keyed and that interpolation is optional, leaving the other 15 parameters (hold, stagger, interval, cycleMode, bezier*) entirely to the schema.

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 verb and resource ('Set camera ... keyframes') and enumerates the four channel types it can key (track, zoom, rollDeg, panTiltDeg), which maps cleanly onto schema properties. It doesn't distinguish itself from neighbors like animation_setKeyframes or camera_get, so an agent must infer that this one targets camera channels specifically.

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?

Only 'and/or' hints that channels are optional and multiple can be set at once. There is no guidance on prerequisites (camera must exist, a frame is required), no indication of how this differs from animation_setKeyframes, and no note on overwrite-vs-insert behavior at an existing keyframe.

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