Skip to main content
Glama

Replace the film

replace_film
DestructiveIdempotent

Replace the complete main.film XML document. Read it first and preserve existing content. A write repairs the mistakes it can fix with certainty, such as a misspelled name, a missing close tag, duration="5s" or a clip longer than its media, and names each repair in its report. A write that still does not compile writes nothing. branchId null (or left out) means the current version; a version id from list_branches writes that version without switching the editor to it. Skills: before the first write that uses something, load the skills that cover it, all in one load_skill call with comma-separated ids: builtin-film-language for any film write; builtin-film-tracks for clips/tracks; builtin-color-grading for grades; builtin-keyframes for keyframes; builtin-screen-recordings for zoom/recording settings; builtin-3d for a 3D model clip; builtin-object-tracking for follow; builtin-track-pointing for aim; builtin-data-files for a ; builtin-sound-effects for sound effect tags (, , , ...); builtin-groups for a . A loaded skill stays loaded for the conversation: never load it again. A patch that only changes values the film already has (a text, a time, a colour, a volume) needs no skill. Bind assets with and play with ref. Use ids from asset/component tools. Film is XML, not TypeScript or JSX.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
branchIdYesVersion id from list_branches to write to, without switching the editor to it. null, or leaving it out, means the current version.
documentYes
projectIdYesThe project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations cover the safety profile (destructive, idempotent, non-read-only), and the description adds substantial behavior beyond them: automatic certainty-bounded repairs with each repair reported, all-or-nothing semantics ('a write that still does not compile writes nothing'), and the branchId null behavior of writing a version without switching the editor.

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?

The purpose, atomicity guarantee and branch semantics are front-loaded in the first half. The long skill-enumeration sentence is dense but each mapping is actionable; it is closer to necessary operational detail than padding, though it inflates overall length.

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?

Given no output schema, the description still discloses return behavior ('names each repair in its report') and the failure case (writes nothing). Prerequisite skill loading, document format and asset binding are all covered, so nothing an agent needs to invoke it correctly is missing.

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?

branchId is already documented in the schema, but the description adds the operational consequence (writes that version without switching the editor) and clarifies the document parameter beyond its bare 'string' type by specifying main.film XML and asset-binding syntax. projectId semantics are largely restated from 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?

States a specific verb and resource ('Replace the complete main.film XML document'), which an agent can distinguish from the sibling patch_film by the word 'complete'. It stops short of explicitly naming patch_film as the alternative, so sibling differentiation is implied rather than stated.

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 clear conditional guidance: read the document first, load skills before the first write that uses a feature, and 'a patch that only changes values the film already has ... needs no skill' implicitly routes small edits to patch_film. It never names the alternative tool outright, so the routing is inferable rather than explicit.

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.