Skip to main content
Glama

Edit project

edit_project
Destructive

Edit an existing project in place, with the same tools as the assistant in the Revid editor. Send every change for one video in one call as edits: they run in order and save as one revision. Either all apply or none, unless a paid edit already ran. Changing words in a motion graphic: list_composition_text to read them, then replace_composition_text ({ mediaId, replacements: [{ find, replace }] }). Free, instant, nothing else in the scene moves, wherever the words live. Other free edits: update_text, set_caption_text, translate_captions (every caption line into another language in one call, the audio untouched), set_caption_style, apply_caption_preset, set_media_props, set_animation, set_transition, move_media, trim_media, split_media, remove_media, close_gap, duplicate_media, add_text_media, add_image_media, add_video_media, add_audio_media, add_music, rename_project, set_format (the aspect ratio). Paid, charged like in the editor, and needing an active plan: edit_composition (rebuild a motion graphic's design, layout or motion from a prompt: 5 credits, several minutes and up to 15 on a long scene; do it before split_media, since a rebuilt piece restarts its animation; it retypes the whole scene, so read sourceChanges when it lands, and restore_composition undoes it for free), generate_motion_graphic, generate_video (replaceMediaId redoes a video clip), convert_image_to_video (animates an existing timeline image into a video clip in place; takes 1–3 minutes and normally answers with a jobId to follow via get_edit_job), generate_image, edit_image, generate_voiceover, generate_music, generate_sound_effect. Long ones return a jobId: follow it with get_edit_job. At most one of generate_image, edit_image, convert_image_to_video, create_ingredient, generate_title_graphic, generate_music, generate_voiceover, generate_sound_effect per call: each slow inline generation can take 20–90 seconds (or 1–3 minutes for convert_image_to_video), so split a batch with more and send the parts in order. While a paid edit runs on a project, other edits to it answer 409 EDIT_IN_PROGRESS: if a call times out, wait, then call get_timeline before trying again, never resend a paid edit blind. dryRun: true returns the credit estimate of a batch and saves nothing. describe_edit_tools gives every tool and its schema; an invalid call answers with the schema too. Check the result with view_frames. It does not change any mp4 already exported: call export_video when the edit is right.

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": {
      "pid": "<pid>",
      "edits": "<edits>"
    },
    "name": "edit_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
pidYesRevid project id.
editsYesThe changes, in order.
dryRunNoValidate and price the batch without saving or charging.
baseRevisionNoThe editRevision you read from get_timeline. If the project changed since, the call is refused and nothing is overwritten.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
errorNo
methodYes
statusYes
endpointYes
retryAfterSecondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare destructive/non-idempotent/openWorld, and the description goes well beyond them: all-or-nothing atomicity with the paid-edit caveat, credit costs, multi-minute runtimes, 409 EDIT_IN_PROGRESS contention on the project, and the fact that baseRevision conflicts are refused rather than overwritten. It also names which operations are free versus charged and require an active plan.

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 atomicity, then organizes the catalog into free versus paid edits and closes with recovery guidance — a logical structure for a very complex tool. It is dense and occasionally chatty ('Free, instant, nothing else in the scene moves, wherever the words live'), which costs a point but the bulk of the length is load-bearing.

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?

For a nested batch-mutation tool with an output schema, the description covers timing, cost, failure modes, retry policy, concurrency conflicts, and downstream verification steps. Nothing an agent needs in order to invoke this 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?

With 100% schema coverage the baseline is 3, but the description adds real semantics: edits run in order and save as one revision, the per-call cap on slow generations, dryRun's pricing behavior, and the interaction of baseRevision with get_timeline. It does not restate the parameter formats themselves, which is appropriate since the schema handles that.

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?

Opens with a specific verb and resource ('Edit an existing project in place') and immediately positions the tool as a batch dispatcher over the Revid editor's edit tools, which distinguishes it from siblings like rename_project, export_video, or the individual mutators it invokes. An agent can tell this is the single entry point for timeline changes.

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

Usage Guidelines5/5

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

Explicitly prescribes when to use what: dryRun:true for credit estimates, get_edit_job for long-running jobs, get_timeline after a timeout instead of resending a paid edit, describe_edit_tools for schemas, view_frames to check results, and export_video afterwards. It also states an ordering constraint (do edit_composition before split_media) and a batching rule (one slow generation per call, split larger batches), leaving little to inference.

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