Skip to main content
Glama

direct_cast

Direct a shot's cast: add, change or remove timed actions, emotions, talking and looks for members, targeting a shot id or the shot on screen.

Instructions

Direct the cast of a shot (shot_id, or scene + shot; left out: the shot on screen): actions, faces, talking and looking. kind action: a move (type from library actions) by actor, some need a target; timed by when or exact at %. kind emotion: a face feeling on member at %. kind talk: member's mouth moves from % to %. kind look: member looks at target from % to %. op add (default), change (id), remove (id), clear (all of that kind). Ids must come from the current style: call library to see them (a wrong id is refused with the valid list). Returns the item id. One undo step for the person. To place or remove people use set_cast; for exact paths over time use set_keyframes.

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

Input Schema

NameRequiredDescriptionDefault
atNoWhen it happens, in % through the shot (0 to 100)
idNoThe action/emotion/talk/look id, for change and remove.
opNoadd if left out. clear removes every item of this kind in the shot.
toNoEnd, in % through the shot (0 to 100)
fromNoStart, in % through the shot (0 to 100)
kindNoaction if left out.
shotNoShot index from 0 inside that scene (with scene; alone: in the scene on screen). A shot id works here too.
sideNoFor sided moves.
typeNoAction id (library actions).
whenNoRough timing in the shot. Use at for an exact %.
actorNoMember id or name doing the action (first cast member if left out).
sceneNoScene index from 0 (with shot). Used when shot_id isn't given.
speedNoAction speed, 1 is normal.
memberNoFor emotion, talk, look: whose face.
targetNoMember id or name it's done to / looked at.
emotionNoEmotion id (library emotions).
shot_idNoThe shot's id from get_project. Or give scene and shot instead. Left out: the shot on screen.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations, the description discloses important behavior: add is the default operation, ids must come from the current style, a wrong id is refused with the valid list, the tool returns the item id, and changes are one undo step. It also clarifies that clear removes every item of that kind. It does not fully explain how 'change' treats omitted fields, which is a meaningful gap for a mutation tool, and the remove/clear semantics are only reconciled with the non-destructive annotation by the undo-step note.

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?

The description is front-loaded and dense with no filler, which is appropriate for a 17-parameter tool. However, the telegraphic sentence fragments and repeated kind-by-kind notation make it harder to parse than a more structured list would be.

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 complex mutation tool with no output schema, the description covers the critical operational context: shot targeting, defaults, operation modes, id sourcing and validation, return value, undo behavior, and alternatives. The remaining gaps around change semantics and speed/side interactions are minor relative to what is supplied.

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 description coverage is 100%, so the schema already documents each parameter. The description adds substantial cross-parameter meaning by mapping parameters to each kind: action uses type, actor, target, and when/at; emotion uses emotion, member, and at; talk uses member, from, and to; look uses member, target, from, and to. It does not add much meaning for speed or side, which the schema covers individually.

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 opens with a specific verb and resource ('Direct the cast of a shot') and immediately enumerates the four supported direction kinds: actions, faces, talking, and looking. It also names the sibling tools that handle neighboring concerns, so an agent can distinguish this tool from set_cast and set_keyframes without opening either schema.

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?

It gives explicit routing guidance: use set_cast to place or remove people, and set_keyframes for exact paths over time. It also explains how to target a shot (shot_id or scene + shot, defaulting to the shot on screen) and directs the agent to library for valid ids, leaving little ambiguity about when and how to use this tool.

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