Skip to main content
Glama

Edit video

edit_video
DestructiveIdempotent

Apply typed immediate edits to one explicitly selected editable video, or start one background edit on it. Inspect first, use its revision, and provide a new mutationId UUID. A repeated request must retain its original id, target, revision and commands. A CONFLICT means nothing was applied; re-read and reconsider before a new edit. Changes to text/prompts do not regenerate media. Enabling captions only displays available transcript data. A background command (logo, transitions, zoom, transcript cleanup, generation, translation, added or draft media, asset tools) must be sent alone; it returns STARTED with a videoEditId to poll with list_video_edits, and paid commands spend credits after the user agrees. This operation does not export or publish anything.

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": {
      "mode": "<mode>",
      "mutationId": "<mutationId>",
      "expectedRevision": "<expectedRevision>",
      "commands": "<commands>",
      "projectId": "<projectId>",
      "editableVideoId": "<editableVideoId>"
    },
    "name": "edit_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes
commandsYesImmediate commands save together. A background command (logo, transitions, zoom, transcript cleanup, generation, translation, added or draft media, asset tools) must be the only command in its request and starts a background task.
projectIdYesProject id returned by list_projects.
mutationIdYes
editableVideoIdYesExact video id from list_project_artifacts. Never choose the active or latest video implicitly.
expectedRevisionYes

Output Schema

NameRequiredDescriptionDefault
outcomeYes
projectIdYes
mutationIdYes
videoEditIdNoPresent when outcome is STARTED. Poll GET /v1/projects/{projectId}/video-edits for this id to follow the background task.
editableVideoIdNo
projectRevisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already mark this as a destructive, idempotent write, but the description adds substantial behavioral context: idempotency means a repeated request must retain its original id/target/revision/commands, a CONFLICT guarantees nothing applied, paid commands spend credits only after user consent, text edits do not regenerate media, and captions only display existing transcript data. It also closes a real risk gap by stating this never exports or publishes.

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?

Front-loaded with purpose and mode split, then transitions to preconditions, conflict handling, and side effects in a logical order. The long parenthetical list of background command categories is dense but functional; a few clauses are packed tightly enough to need a second read.

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 destructive, credit-spending command executor with annotations and an output schema, the description covers the operational essentials: revision precondition, idempotency contract, conflict semantics, background-only constraint, credit consent, and non-goals around export/publish. Remaining gaps are secondary, such as the 100-command batch limit and how immediate commands interact atomically, which the schema field description partly covers.

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 only 50% schema description coverage across six required parameters, the description compensates by explaining that the video must be explicitly selected, that expectedRevision comes from inspection, and that mutationId must be a new UUID that is retained on retry. It also explains what the commands array can hold in general terms (immediate batch vs single background command). It does not enumerate the individual command type semantics, which the schema's const/oneOf structure largely carries.

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 ('Apply typed immediate edits to one explicitly selected editable video, or start one background edit on it') and draws the two-mode boundary immediately. An agent can tell this is a batch command executor on a single video, not a project-level or workflow-level editor, without opening the 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 a real workflow: inspect first, use the current revision, mint a fresh mutationId, and on CONFLICT re-read rather than retry blindly. It also states the constraint that background commands must be sent alone and points to list_video_edits for polling. It stops short of naming which sibling to use for project-level or workflow-level edits, so sibling routing is only partially covered.

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.