Skip to main content
Glama

write_script_scenes

Delegate script WRITE turns to the dedicated script-writer model: editing or rewriting scenes, adding scenes, renumbering, or restructuring the scene list. Deleting scenes, some or all, is delete_scene, never this tool: the writer cannot return an empty script. Call this in script mode whenever the user asks for a script change — pass a self-contained brief; do NOT write scene content yourself. The writer sees the current scenes and your brief, rewrites the full scene list, and persists it in the background. For a tiny tweak where you already have the exact final text, update_scene is cheaper.

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": {
      "movieId": "<movieId>",
      "brief": "<brief>"
    },
    "name": "write_script_scenes"
  }
}

Input Schema

NameRequiredDescriptionDefault
briefYesRequired. The writing brief: the user's request plus every decision already made in the conversation (which scenes to touch, tone, pacing, characters, target durations, and whether this is a scoped edit or a broader rewrite). The writer only sees the current scenes and this brief — make it self-contained.
movieIdYesThe movie id (uuid) this call operates on. Get it from create_movie or list_movies.
sceneIdsNoThe scene numbers the user asked to change (a new number adds that scene). Set it whenever the request names scenes ("update scene 3"): only those are written, every other scene stays exactly as it is. Leave it out only for a change to the whole script.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the delegation model (writer sees current scenes plus your brief), that the writer rewrites the FULL scene list and persists in the background, and the constraint that it cannot return an empty script. It stops short of saying how to observe completion of that background write, which is the one behavioral gap for an async mutation.

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?

Front-loaded with the core action, then exclusions, then invocation guidance, then the cheap alternative. Despite its length every sentence carries a distinct decision the agent needs — nothing is filler.

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 3-parameter mutation with no output schema and no annotations, this is close to sufficient: it explains inputs, side effects, persistence, and alternatives. The remaining gap is post-call observability — how to verify the background rewrite landed — which an agent would have to infer.

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 still adds usable meaning: it frames brief as a self-contained authoring input the agent must write rather than scene content, and reiterates that sceneIds scopes the write to named scenes while others stay untouched. That reinforces rather than merely repeats 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?

States a specific verb and resource — delegate script WRITE turns to the dedicated script-writer model — and enumerates the operations it covers (editing, rewriting, adding, renumbering, restructuring). It explicitly distinguishes itself from delete_scene and update_scene, so an agent can route 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 an explicit trigger (any user request for a script change, in script mode) plus a negative instruction (do NOT write scene content yourself, pass a self-contained brief). It also names two alternatives with the exact conditions that select them: delete_scene for deletions, update_scene for a tiny tweak where the final text is already known.

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