Skip to main content
Glama

Edit the script

script_edit
Destructive

Change the script or its settings; only revise spends credits.

save: replace the active version's text (the old text is lost: show the user the current script first), then run Analyze Script. Notation, never read aloud: [SCENE: <visual direction>] as its own paragraph directs the storyboard for the narration after it, until the next one, over the director style. <break time="1.5s" /> is the only thing that makes the voice pause (about 0.5s between thoughts, 1.0s between sections; one tag with the total, never two in a row). A paragraph starting Name: "..." is that character's dialogue. A delivery cue in square brackets inside a line ([laughs], [sighs], [whispers]) shapes how it is said; keep it inline, never on its own line. MiniMax performs sounds such as laughs, sighs, breathes, gasps and coughs and drops other cues.

activate_version: switch to another version (each generated script is one). revise: an AI rewrite of a passage or the whole script in the narrative voice; returns revised_text without saving it: splice it in and save.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYessave: content; activate_version: script_id; revise: instruction, optional selected_text; settings: script_target_minutes and/or voice_mix; set_concept: visual_concept
contentNosave: the full script text
script_idNoactivate_version: a version id from script_read
voice_mixNosettings: narration versus character dialogue
project_idYesProject id
instructionNorevise: what to change, e.g. "make the intro punchier"
selected_textNorevise: the exact passage to rewrite; omit for the whole script
visual_conceptNoset_concept: how the video looks
script_target_minutesNosettings: length of the next generated script, in minutes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations (destructiveHint, non-idempotent) by disclosing the concrete consequence: the old text is lost and should be surfaced first, revise spends credits, and revise returns revised_text without persisting. This is exactly the kind of consequence detail an agent needs before calling a destructive tool.

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?

Core purpose and the destructive warning are front-loaded in the first two sentences; per-action blocks follow. The notation paragraph is dense and run-on, but its rules are operationally relevant to authoring `content`, so little of it is genuinely wasted.

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 9-parameter, 5-action tool with no output schema, the description covers the risky paths (save overwrite, credit-spending revise, non-persisting revise return) well. The remaining gap is that settings and set_concept get no behavioral treatment beyond the schema's action enum mapping.

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 adds real meaning the schema cannot carry: the notation grammar for `content` (SCENE blocks, break tags, dialogue naming, inline delivery cues) and the revise/selected_text splice workflow. It leaves the settings and set_concept fields to the schema.

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 opening line states a specific verb+resource ('Change the script or its settings') and adds a differentiating cost note ('only revise spends credits') that separates it from script_generate/script_read. It does not explicitly name a sibling, so it lands just short of a 5.

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?

Gives per-action guidance (save replaces the active text; activate_version switches versions; revise rewrites without saving and must be spliced in then saved) and a prerequisite ('show the user the current script first'). Clear context, though it never explicitly routes to siblings like script_read for ids beyond a passing mention.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources