Skip to main content
Glama

set_text

Add, change, or remove on-screen text in a shot, set its style preset and animation, and get the shot and text IDs for further edits.

Instructions

Add, change or remove on-screen text in a shot (shot_id, or scene + shot; left out: the shot on screen). preset is one of the style's text presets (its look and font); action is its animation (pop, slam, type, fade, slide, drop...). Ids must come from the current style: call library to see them (a wrong id is refused with the valid list). Returns the shot and text ids. One undo step for the person. For a script line that is spoken, use script with action write or assign (its captions come from the voice).

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_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoCentre across, in % of the frame (50 is the middle).
yNoCentre down, in % of the frame (18 is near the top; captions sit near 84).
atNoWhen it appears, in % through the shot (0 to 100)
idNoText id, for change and remove.
opNoadd if left out.
fontNoA font family the style offers, or "".
shotNoShot index from 0 inside that scene (with scene; alone: in the scene on screen). A shot id works here too.
sizeNo1 is normal.
whenNoRough timing in the shot. Use at for an exact %.
colorNo"#RRGGBB", or "" for the preset's own.
sceneNoScene index from 0 (with shot). Used when shot_id isn't given.
untilNoWhen it leaves, in % through the shot (0 to 100)
wordsNoThe text. Short reads best: 2 to 5 words.
actionNoAnimation id (library text_animations).
presetNoText preset id (library text_presets).
shot_idNoThe shot's id from get_project. Or give scene and shot instead. Left out: the shot on screen.
line_wordsNoWords per line (2 if left out).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations (readOnly=false, destructive=false, idempotent=false), it discloses that the operation creates one undo step, that invalid ids are rejected with a valid list, and that it returns the shot and text ids. It does not fully spell out what happens on repeat calls (whether each add stacks a new text), which the non-idempotent hint implies.

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?

Dense but front-loaded: the core action and target come first, then preset/action semantics, then id sourcing and the return value, then the sibling routing. The parenthetical-heavy style is slightly crowded but nearly every clause carries information.

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

Completeness4/5

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

For a 17-parameter mutation tool with no output schema, the description covers the essentials: how to identify the shot, where valid ids come from, the read-back of returned ids, and the undo footprint. Timing/positioning parameters are left entirely to the schema descriptions, which is acceptable given full coverage.

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 description coverage is 100%, so the schema already carries most parameter meaning. The description adds a real constraint (preset and action ids must belong to the current style) and glosses preset as the look/font versus action as the animation, but 17 parameters are otherwise left to the schema.

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 opening clause names a specific verb set and resource: add, change or remove on-screen text in a shot. It also scopes which shot is targeted (shot_id, scene + shot, or the shot on screen), so an agent can distinguish it from siblings like script, remove, or library.

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: 'For a script line that is spoken, use script with action write or assign (its captions come from the voice)', and directs the agent to call library to obtain preset/action ids. It also states the consequence of a wrong id ('refused with the valid list') and the default target when the shot is omitted.

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