Skip to main content
Glama

Save a film draft's files

put_film_files

Saves or updates a Clipwright film draft's scene files, cues, sound effects, captions, beats, and storyboard using a base revision; null deletes files and omitted fields are kept.

Instructions

Free. Saves scene files (Movie.tsx, chapters), anchors in seconds (cues), the sound events (sfx: {s, at, dt, n, step, g} or {s, from, to}) and captions (one phrase a line, word its accent) on base_revision; a file set to null is deleted, an omitted one kept; cues, sfx and captions each replace the draft's when sent, and an omitted one is kept. A stale base_revision is refused: read the draft again. Code imports only react, scene-kit and its own files. Read get_film_guide first.

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": {
      "draft_id": "<draft_id>",
      "base_revision": "<base_revision>"
    },
    "name": "put_film_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
sfxNo
cuesNo
beatsNo
filesNo
captionsNo
draft_idYes
storyboardNo
base_revisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.78.0

TDQS

A4.2/5.0
Behavior4/5

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

The annotations only declare readOnlyHint=false and destructiveHint=false; the description adds the important mechanics: null deletes a file, omission keeps it, and cues/sfx/captions each replace the draft's copy when sent but are kept when omitted, plus an import allowlist (only react, scene-kit and its own files). One tension remains: file deletion via null is a destructive micro-behavior, so destructiveHint=false is slightly at odds with the stated semantics, worth flagging to the caller even though it does not rise to a full contradiction.

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?

Everything sits in one dense, front-loaded paragraph where nearly every clause adds a rule (deletion contract, replacement contract, revision conflict, import restriction, prerequisite). It is telegraphic rather than padded, but the semicolon-chained structure and shape notation make it harder to scan than a short bulleted breakdown would be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex mutation over deeply nested objects with no output schema, the description covers the write/keep/delete contract and the revision conflict well, but leaves the caller guessing on beats, storyboard, list-size expectations, and what a successful save returns (e.g. the new revision). An agent could invoke it correctly on the file/cue/sfx path but would need to fall back to schema inspection for the storyboard path.

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?

With 0% schema description coverage, the description carries the burden and does substantial work: sfx is spelled out as {s, at, dt, n, step, g} or {s, from, to}, cues as anchors in seconds keyed by name, captions as one phrase per line with *word* marking its accent, and files as a null/omit contract. The gap is that the two heaviest structured parameters, beats (a 30-value subject enum) and storyboard (nested events, poses, timing), are not described at all, leaving their semantics to the raw 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?

The description opens with a specific verb and resource set: it saves a film draft's scene files, cues, sfx and captions against a base_revision. That distinguishes it cleanly from get_film_draft, create_film_draft, get_film_guide and check_film, and an agent can tell it is the write path of the draft lifecycle 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 Guidelines4/5

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

It gives an explicit prerequisite ("Read get_film_guide first") and a precise recovery path when the write is refused ("A stale base_revision is refused: read the draft again"), which is real when-to-use guidance. It does not explicitly contrast itself with create_film_draft or get_film_draft, so alternative selection rests on the verb and the base_revision semantics rather than stated exclusions.

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