Skip to main content
Glama

script

Read, write, and assign dialogue lines for animated films, including AI-generated text from a topic, then map lines to shots for voice or captions.

Instructions

The film's script, the way Sound and script does it. action get (read-only): title, the chosen voice, every line (id, text, feeling, whether it has a voice and how long) and which shots speak it; use the line ids with assign, speak or own_voice. action write: put a script in: your own lines (short, 5-15 words, one shot each), or text (a whole script, cut into lines at sentences), or only a topic (Dinoctor's Claude writes it; uses the person's own Claude Code and can take a few minutes, so say so first). Unless put_in_film is false, lines go into a scene: shots there without a voice take lines in order, and each line left over becomes a new shot sized to it. Captions show a line's words until it has a voice. replace: false adds to the script. action assign: give one shot (shot_id, or scene + shot; default the shot on screen) one line: the shot speaks that line's voice (or shows its words as a caption until it has one), replacing its own voice; fit: true makes the shot as long as the line. write and assign are one undo step each. To make the voices, call speak next.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "script"
  }
}

Input Schema

NameRequiredDescriptionDefault
fitNoShots that take a line get the line's length (write: default true; assign: default false).
lineNoassign: a line id from action get.
shotNoShot index from 0 inside that scene (with scene; alone: in the scene on screen). A shot id works here too.
textNowrite: a whole script to cut into lines at sentences.
toneNoFor a topic: the tone, like 'funny' or 'calm documentary'.
linesNowrite: your own lines, in order: plain strings or { text, feeling }.
sceneNowrite: the scene to put the lines in, index from 0 (default: the scene on screen). assign: with shot, the shot's scene.
titleNoThe script's title.
topicNowrite: only a topic: Dinoctor's Claude writes the script.
actionYesget the script, write lines into it, or assign one line to one shot.
replaceNofalse: add to the script instead of replacing it. Default true.
secondsNoFor a topic: how long the film is (default 60).
shot_idNoassign: the shot's id from get_project. Or give scene and shot.
captionsNoShow captions of the lines (default true).
new_shotsNofalse: leftover lines wait instead of becoming new shots.
put_in_filmNofalse: only keep the lines in the script, don't touch shots. Default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly=false, destructive=false, idempotent=false, so the bar is lower. The description still adds real behavior: get is read-only, write and assign are each one undo step, topic mode burns the user's own Claude Code quota and can take minutes, leftover lines become new shots, and captions mask a line until it has a voice. It never states what a failed write leaves behind, though the undo-step note partly covers that.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Everything stated earns its place, but it is delivered as one dense semicolon-and-parenthesis run-on that is hard to scan for a 16-parameter tool. The action labels are front-loaded, but mode-specific guidance would be far clearer as separate lines per action rather than one paragraph.

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?

With 16 parameters, three modes, and no output schema, the description does the heavy lifting: it enumerates exactly what get returns (line ids, text, feeling, voice status, duration, speaking shots), which substitutes for the missing output schema. Remaining gaps are minor, such as what happens when a line id or shot id is invalid, or which parameters are required per action.

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 3 is the baseline, but the description earns more by explaining cross-parameter interactions the schema cannot express: fit defaults true for write and false for assign, replace=false appends, put_in_film=false keeps lines out of shots, and new_shots=false leaves leftovers waiting. That is meaningfully more than the per-field descriptions alone.

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?

The description names the resource (the film's script) and decomposes it into three named actions with concrete outcomes: get returns title/voice/lines/shots, write inserts lines or a topic, assign binds one line to one shot. It even names the sibling tools that consume line ids (assign, speak, own_voice). The opening phrase 'the way Sound and script does it' is vague filler, but the action breakdown makes the tool's purpose unmistakable.

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

Usage Guidelines4/5

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

It gives explicit routing: 'use the line ids with assign, speak or own_voice' and 'To make the voices, call speak next', plus a warning to say so first for topic mode because generation takes minutes. It does not contrast script with sibling tools like add_shot or add_scene, so an agent must infer whether new material belongs in script or in the shot tools.

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