Skip to main content
Glama

Apply edit batch

apply_edit_batch

Atomically saves a group of edit operations against the current base version, with a stable retry operation ID. Operations set complete layers, upsert or remove identified items, or reorder a canvas sequence. Times refer to the resulting program timeline. Invalid fields or media reject the batch; saving does not render or certify the result.

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": {
      "base_version": "<base_version>",
      "operations": "<operations>",
      "operation_id": "<operation_id>",
      "project_id": "<project_id>"
    },
    "name": "apply_edit_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
operationsYes
project_idYesExplicit project identifier for this request. The connection's navigation pointer does not select the target.
base_versionYes
operation_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / operations / items / properties / layer / enum
      Previous value: -[
      -  "keep",
      -  "speed",
      -  "inserts",
      -  "frame",
      -  "captions",
      -  "caption_mutes",
      -  "texts",
      -  "vectors",
      -  "music",
      -  "sfx",
      -  "voiceover",
      -  "volume",
      -  "master",
      -  "effects",
      -  "overlays",
      -  "canvas",
      -  "motion",
      -  "fx"
      -]New value: +[
      +  "keep",
      +  "speed",
      +  "inserts",
      +  "frame",
      +  "captions",
      +  "caption_mutes",
      +  "texts",
      +  "vectors",
      +  "music",
      +  "sfx",
      +  "voiceover",
      +  "volume",
      +  "master",
      +  "effects",
      +  "overlays",
      +  "canvas",
      +  "motion",
      +  "noise_clean",
      +  "export",
      +  "fx"
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / operations / items / properties / value / description
      Previous value: -"set: complete layer value (array for texts/inserts/music). upsert: one item object merged by id. reorder: all insert ids. Read get_edl for exact shapes."New value: +"For set, the complete layer value; for upsert, an item object merged by ID; for reorder, all insert IDs in order. Values follow the current edit decision list's field shapes."
    • changedInput schema / properties / project_id / description
      Previous value: -"Required immutable scope for this call. Copy the id from list_projects/open_project/project_state; the active-project pointer is never used to guess."New value: +"Explicit project identifier for this request. The connection's navigation pointer does not select the target."
  3. Changed1 schema field changed
    • changedInput schema / properties / operations / items / properties / layer / enum
      Previous value: -[
      -  "keep",
      -  "speed",
      -  "inserts",
      -  "frame",
      -  "captions",
      -  "caption_mutes",
      -  "texts",
      -  "vectors",
      -  "music",
      -  "sfx",
      -  "voiceover",
      -  "volume",
      -  "master",
      -  "effects",
      -  "overlays",
      -  "canvas",
      -  "motion"
      -]New value: +[
      +  "keep",
      +  "speed",
      +  "inserts",
      +  "frame",
      +  "captions",
      +  "caption_mutes",
      +  "texts",
      +  "vectors",
      +  "music",
      +  "sfx",
      +  "voiceover",
      +  "volume",
      +  "master",
      +  "effects",
      +  "overlays",
      +  "canvas",
      +  "motion",
      +  "fx"
      +]
  4. Changed1 schema field changed
    • changedInput schema / properties / operations / items / properties / layer / enum
      Previous value: -[
      -  "keep",
      -  "speed",
      -  "inserts",
      -  "frame",
      -  "captions",
      -  "caption_mutes",
      -  "texts",
      -  "vectors",
      -  "music",
      -  "sfx",
      -  "voiceover",
      -  "volume",
      -  "master",
      -  "effects",
      -  "overlays",
      -  "canvas"
      -]New value: +[
      +  "keep",
      +  "speed",
      +  "inserts",
      +  "frame",
      +  "captions",
      +  "caption_mutes",
      +  "texts",
      +  "vectors",
      +  "music",
      +  "sfx",
      +  "voiceover",
      +  "volume",
      +  "master",
      +  "effects",
      +  "overlays",
      +  "canvas",
      +  "motion"
      +]
  5. Changed3 schema fields changed
    • addedInput schema / properties / operations / items / properties / id / description
      Added value: +"Existing item id for upsert/remove; omit for whole-layer set."
    • addedInput schema / properties / operations / items / properties / layer / enum
      Added value: +[
      +  "keep",
      +  "speed",
      +  "inserts",
      +  "frame",
      +  "captions",
      +  "caption_mutes",
      +  "texts",
      +  "vectors",
      +  "music",
      +  "sfx",
      +  "voiceover",
      +  "volume",
      +  "master",
      +  "effects",
      +  "overlays",
      +  "canvas"
      +]
    • addedInput schema / properties / operations / items / properties / value / description
      Added value: +"set: complete layer value (array for texts/inserts/music). upsert: one item object merged by id. reorder: all insert ids. Read get_edl for exact shapes."
  6. Added

TDQS

A3.8/5.0
Behavior4/5

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

Several real behavioral facts are disclosed beyond the annotations: the write is atomic, invalid fields or media reject the entire batch, timestamps resolve against the resulting program timeline, and saving does not render or certify output. That last clause usefully preempts an agent expecting a rendered artifact. The 'stable retry operation ID' wording sits in mild tension with idempotentHint=false, since retry-safety usually implies deduplication, but this is a nuance rather than a clear 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?

Four tight sentences, front-loaded with the core action and its atomicity guarantee. Dense but every clause carries information; nothing reads as filler, though the sequence of clauses (semantics before validation before caveats) is packed rather than clearly sectioned.

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 complex mutation tool with no output schema and 25% parameter coverage, the description covers the essentials an agent needs before calling: atomicity, all-or-nothing validation, project and base-version anchoring, and the no-render caveat. It stops short of describing what a base_version mismatch returns, which is the main remaining gap for a version-checked write.

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 description coverage is only 25%, so the description must compensate and largely does: it explains base_version as a concurrency anchor ('against the current base version'), clarifies operation_id's role as a stable retry key, and notes that times refer to the resulting timeline. The operations array's shape is left to the schema, which already documents action, layer, id, and value semantics in detail.

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?

The description gives a specific verb and resource ('atomically saves a group of edit operations against the current base version') and enumerates what the operations do (set complete layers, upsert/remove identified items, reorder a canvas sequence). It does not distinguish itself from the sibling apply_short_edit_batches, so an agent can't tell when the batch versus short-batch variant is appropriate from this text alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is implied through the operation taxonomy rather than stated: an agent can infer this is for multi-operation edits, but there is no explicit when-to-use, when-not-to-use, or named alternative (e.g. apply_short_edit_batches, reset_edit). No prerequisites or batching limits are mentioned beyond what the schema's maxItems=64 conveys.

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.