Skip to main content
Glama

Revise script

revise_script

Prepare revision context for an existing video script or save a rewritten replacement as a linked new version, using prior script and critique findings to guide the agent’s rewrite.

Instructions

Prepare revision context for an existing video script, or save its replacement as a linked new version. Use after get_script or critique_against_corpus; use generate_script for a new draft. Without revised_script, returns the previous script and grounding; with it, persists a new row whose parent is the prior script. The agent performs rewriting; server-side BYO generation is not implemented.

Input Schema

NameRequiredDescriptionDefault
modeNoCompute provenance label: agent or byo_key. The caller still supplies the analysis; this field alone does not run a provider model.
script_idYesInteger script-version ID from list_scripts, generate_script or revise_script.
revised_scriptNoReplacement script object with the same fields as generate_script.script; omit for revision context only.
revision_targetNoRequested revision focus supplied to the agent alongside the previous script.
critique_findingsNoAgent-supplied findings to include in revision context; the server does not analyze them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.12.1

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, it discloses the critical behavioral split: without revised_script it is a read returning the previous script and grounding; with it, the server persists a new row whose parent is the prior script rather than mutating in place — consistent with destructiveHint=false. It also preempts a likely misread of the mode enum by stating 'The agent performs rewriting; server-side BYO generation is not implemented.'

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

Conciseness5/5

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

Four tight sentences, front-loaded with the two-mode purpose, then sequencing, then mode semantics. No filler and no repetition of schema text.

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 no output schema, the description correctly states what the context path returns, but it does not say what the write path returns (e.g., the new script-version id). Given a nested-object parameter and a non-idempotent annotation, that is the one remaining gap.

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 baseline is 3; the description adds real meaning by explaining the conditional effect of revised_script (context vs. new persisted version) and clarifying that mode is only a provenance label. It stops short of describing revision_target or critique_findings beyond what their schema text already says.

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?

States a specific verb and resource ('Prepare revision context for an existing video script, or save its replacement as a linked new version') and explicitly separates itself from generate_script ('for a new draft'). An agent can distinguish this dual read/write revision tool from its siblings without opening any 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?

Gives explicit sequencing ('Use after get_script or critique_against_corpus') and names the alternative for the adjacent intent ('use generate_script for a new draft'). The two operating modes are also gated by a clear condition: omit revised_script for context, supply it to persist.

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

Deploy Server

Other Tools