Skip to main content
Glama

set_cast

Add, change, or remove characters and objects in a shot to edit its cast; specify the shot, member, and valid style IDs.

Instructions

Add, change or remove a character or object in a shot (shot_id, or scene + shot; left out: the shot on screen). op add needs ref (a character or object id of the style); change and remove need member (its id from get_shot, or its name). Ids must come from the current style: call library to see them (a wrong id is refused with the valid list). A character added without x is spaced out automatically. Returns the shot and member ids. One undo step for the person. To make the cast move or feel something, use direct_cast; for animation 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": "set_cast"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoLeft (-) to right (+); about -8 to 8 is in frame.
yNoHeight above the ground; 0 stands on it.
zNoNear (+) to far (-); 0 is the front line.
opNoadd if left out.
refNoCharacter or object id (add), or a new one of the same kind (change swaps it).
nameNoA name for this member, like 'Mia'. Used by direct_cast and in undo notes.
poseNoA pose id the character offers.
shotNoShot index from 0 inside that scene (with scene; alone: in the scene on screen). A shot id works here too.
sizeNo1 is normal size.
spinNoDegrees, turning in the picture like a wheel.
tintNoColour "#RRGGBB", or "" to remove.
turnNoDegrees, turning round like on a stage.
sceneNoScene index from 0 (with shot). Used when shot_id isn't given.
auto_xNochange: true lets the scene space it out again.
facingNoWhich way it looks.
memberNoMember id or name (change, remove).
shot_idNoThe shot's id from get_project. Or give scene and shot instead. Left out: the shot on screen.
accessoryNohat, crown, party, bow (only characters that can dress), or "".

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?

Annotations already flag a non-readonly, non-destructive, non-idempotent mutation, but the description adds real behavior beyond them: invalid ids are "refused with the valid list", an added character without x is auto-spaced, one undo step is recorded, and the shot/member ids are returned. It stops short of describing permissions or what happens to member properties during a change, so it is strong but not exhaustive.

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 purpose, then operation requirements, then routing to alternatives; every clause carries operational information with no filler. The heavy parenthetical chaining makes it dense to parse, but nothing is redundant.

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 an 18-parameter mutation tool with no output schema, the description still covers targeting defaults, id provenance, per-op requirements, error behavior, and even the return values (shot and member ids). An agent has everything needed to call it correctly.

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, but the description genuinely adds cross-parameter semantics the schema cannot express: op requires ref vs. member, member accepts an id from get_shot or a name, and ids are scoped to the current style. It also clarifies the shot_id / scene+shot fallback chain beyond the per-property text.

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?

"Add, change or remove a character or object in a shot" gives a specific verb set and resource, and the closing sentence explicitly partitions the space against direct_cast (movement/feeling) and set_keyframes (animation over time). An agent can distinguish this from every named sibling without opening a 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 states the per-operation requirements (add needs ref, change/remove need member), where ids must come from ("call library to see them"), the calling alternatives for movement and animation, and the default target when no shot is given ("the shot on screen"). Explicit when-to-use and when-to-use-something-else guidance is present.

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