Skip to main content
Glama

Edit video

edit_video

Change an existing video from a written instruction ("make it winter, add falling snow"). Point at the source with job_id (a clip this connector made earlier) or a public video_url. It takes a source of 3-30 seconds, at least 700 px on each side. The default editor bills the source plus the equally long edited clip, about 23 credits per second of source at 720p (a 5-second clip costs about 113 credits) against the workspace's Masonry balance (list_models has exact per-model prices), and takes about 1-5 minutes. To change what a person in the clip says, pass speech_job_id instead of an instruction: the clip is lip-synced to that recording and nothing else changes. To put a different person into the clip, pass image_url of that person (mode motion makes the image's character perform the clip's motion). Changing a real person's words or face is meant for the user's own image, or someone who has agreed to it, and the result is not real footage of them. Waits for the clip and returns it in the conversation; if it is still rendering when the wait ends, the reply carries a job_id: the job keeps running and check_generation returns its result. Starting the same job again makes and bills a second one. Call list_skills and pass skill_slug when relevant; write prompt from the user's request. Omit model to use a video-editing model.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "edit_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoWith image_url only: swap (default; the image's person replaces the one in the video) or motion (the image's character performs the video's motion).
modelNoOptional video-editing model key (see list_models, kind=video). Defaults to a video-editing model.
job_idNoThe video to edit: job_id of a prior video generation, a render job_id (render:...) or a media_id from add_media. Provide this OR video_url.
promptNoEdit instruction for the source video, e.g. 'make it winter, add falling snow'.
optionsNoOptional model-specific settings by name, for example swap_mode to swap a product instead of a person. Only settings the chosen model has; a wrong name is refused with the list it accepts.
image_urlNoOptional image of a new person or character to put into the source video: a direct https image URL or masonry:// reference (masonry://generations/<job_id>). The clip keeps its cuts, motion and sound with that person in it. With mode motion, the image's character performs the video's motion instead.
video_urlNoPublic https URL (or masonry:// reference) of the source video to edit. Provide this OR job_id.
skill_slugNoOptional Masonry skill slug from list_skills. Uses the selected skill for provenance and model routing only; skill text is guidance, and the prompt describes the user's request.
speech_job_idNoOptional speech to lip-sync the person in the source video to, keeping the picture and motion: the job_id of a generate_audio speech job, or an add_media media_id of a recording. The default model takes clips of 2-10 seconds and at least 720 px. With it, prompt is not used.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say this is a non-read-only, non-idempotent, open-world write; the description supplies the substance behind that: pricing (~23 credits/sec at 720p, source plus edited clip billed), 1-5 minute runtime, source limits of 3-30 seconds and 700 px per side, the different 2-10 second/720 px limits for speech_job_id, and the warning that starting the same job again makes and bills a second one. It also discloses the wait-then-job_id fallback and a responsible-use note about real people's faces and words.

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?

Purpose and source-selection come first, then cost, then the alternate modes, then the wait/return behavior, then the skill hint — a sensible front-loaded order. The pricing parentheticals and the ethics sentence are somewhat dense, but for a nine-parameter, billable, non-idempotent tool the length is largely justified.

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?

With no output schema, the description carries the return burden and does so: it says the tool waits for the clip and returns it in the conversation, and that a still-rendering job yields a job_id recoverable via check_generation. Combined with cost, duration, source constraints, and mode-specific rules, nothing an agent needs to call it correctly is absent.

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 schema already defines all nine parameters; the description still adds real meaning by explaining the tradeoff between job_id and video_url, that speech_job_id overrides prompt, and that mode=motion makes the image's character perform the clip's motion. It stops short of covering the options object beyond what the schema says, but the added semantics clearly exceed the baseline.

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 first sentence states a specific verb and resource ("Change an existing video from a written instruction") with a concrete example, which cleanly separates it from generate_video, clip_video, and animate_image. The follow-on branches (speech_job_id for lip-sync, image_url for face/character replacement) make the tool's scope unmistakable.

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 explicit routing for the source (job_id vs video_url), for the alternate use cases (speech_job_id instead of an instruction, image_url with mode motion), and points to list_models, list_skills, and check_generation for adjacent steps. What is missing is an explicit statement of when to pick a sibling such as generate_video or animate_image instead of editing an existing clip.

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