Skip to main content
Glama

Update Script

update_script
DestructiveIdempotent

Replace a video's script lines. This is a full replacement, not a patch — call get_script first and send back every line. Editing a line's text invalidates any narration already generated for it, and the response reports how many lines were affected; regenerate the voiceover afterwards. Locked videos are refused.

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": {
      "videoId": "<videoId>",
      "lines": "<lines>"
    },
    "name": "update_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesYesThe complete set of lines, in order
videoIdYesThe video ID (e.g. vid_...)

Output Schema

NameRequiredDescriptionDefault
linesNo
videoIdNo
voiceoverInvalidatedLinesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description adds consequences the annotations cannot convey: full-replacement semantics, narration invalidation when a line's text changes, a count of affected lines in the response, and rejection of locked videos. This is substantive behavioral context beyond the structured fields.

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 short sentences, front-loaded with the core operation, then the prerequisite, then the consequence, then the refusal condition. No sentence is redundant with the name or annotations.

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 a destructive, full-replacement mutation with an output schema present, the description covers what an agent must know to call it correctly: prerequisite read, completeness requirement, side effects, and refusal behavior. Return-value detail is rightly left to the output schema.

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 schema already documents videoId and the line objects, and the description correctly does not restate field-level detail. It does add meaning the schema lacks: that the lines array must be the complete set obtained from get_script, and that text edits have downstream narrol implications.

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?

"Replace a video's script lines" states a specific verb (replace) and resource (script lines), and immediately disambiguates the operation as a full replacement rather than a patch. An agent can distinguish this from get_script, which is explicitly named as the read-side counterpart.

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?

The description spells out the required workflow (call get_script first, send back every line) and the required follow-up (regenerate the voiceover). It also names a precondition for refusal (locked videos are refused), so the agent knows both the when and the when-not.

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