Skip to main content
Glama

set_camera

Idempotent

Configure a shot's camera by applying a preset move or custom keyframes for position, angle, and easing. Returns the camera settings for the shot.

Instructions

Set a shot's camera (shot_id, or scene + shot; left out: the shot on screen): a preset move with strength and wiggle, or direct it with camera keys (keys win over the move). Each key: at (seconds) and any of x, y, z, distance, height, angle, roll, ease; what a key leaves out is taken from where the camera is at that moment. Ids must come from the current style: call library to see them (a wrong id is refused with the valid list). Returns the camera settings. One undo step for the person. For the end-of-shot camera move into the next shot, use set_transition (outro_camera).

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

Input Schema

NameRequiredDescriptionDefault
keysNoCamera keys in time order.
moveNoCamera move id (library cameras). Clears camera keys.
shotNoShot index from 0 inside that scene (with scene; alone: in the scene on screen). A shot id works here too.
sceneNoScene index from 0 (with shot). Used when shot_id isn't given.
wiggleNoHandheld feel: 0 locked off, 1 normal, up to 3.
shot_idNoThe shot's id from get_project. Or give scene and shot instead. Left out: the shot on screen.
strengthNoHow far the move goes, 0 to 100.
clear_keysNotrue: drop camera keys, back to the move.
replace_keysNofalse: add these keys to the ones there. Default replaces them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare write/idempotent/non-destructive; the description adds substantive behavior: unspecified key fields inherit the camera's current position at that moment, move clears camera keys, invalid ids are rejected with the valid list, and the call consumes exactly one undo step for the person. That is real operational context an agent cannot get from the annotations.

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?

Front-loaded with the action, then modes, then the key mechanics, then the sibling redirect. It is dense and parenthetical-heavy, and the key-field enumeration partly restates the schema, but no sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter mutation with no output schema, the definition covers targeting, two input modes, precedence, id validation, return value ('Returns the camera settings'), and undo cost. Nothing an agent needs in order to call it correctly is missing.

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% and each parameter is already documented in detail, so the baseline is 3. The description earns above baseline by explaining cross-parameter semantics the schema cannot: key/move precedence, field inheritance from the camera's current state, and the shot_id-vs-scene+shot resolution rule. It stops short of explaining strength/wiggle ranges, which the schema already covers.

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?

States a specific verb and resource ('Set a shot's camera') and immediately lays out the two operating modes: a preset move with strength/wiggle, or explicit camera keys. It also names the sibling boundary ('For the end-of-shot camera move into the next shot, use set_transition'), so the agent can distinguish it without opening other schemas.

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

Usage Guidelines5/5

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

Gives explicit routing: use set_transition with outro_camera for the move into the next shot; call library to get valid move ids; omit shot_id to target the shot on screen. It also states precedence ('keys win over the move') and the failure mode ('a wrong id is refused with the valid list'), which is when-to-use guidance at a high level of specificity.

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