Skip to main content
Glama

Edit a finished video

tegas_edit_video
Destructive

Paid: each re-voiced scene costs tokens like a normal generation (about 10 T per scene voice-over); scene clip, subtitle, music and volume changes alone are not charged; a failed edit is refunded. Edit a finished video in place and rebuild it: this REPLACES the whole video end to end and typically takes a few minutes, the same as the original render - it is not a quick patch. Tell the user what you are about to change before calling this, then poll with tegas_wait_video (or tegas_video_status) after the call; do not call this again for the same video until the rebuild finishes.

Pass at least one of the groups below; omit a group entirely to leave it untouched:
- scenes: list of {"index": int, "voiceover_text"?: str, "subtitles_text"?: str, "video_url"?: str}
  - one entry per scene to change, each needs at least one of the three fields.
- voice: {"id"?: str, "gender"?: "female"|"male", "language"?: "ru"|"en"|"es"|"fr"|"de"|"tr"} -
  changing any of id/gender/language RE-VOICES EVERY SCENE that has voice-over text, not just
  the ones listed in `scenes`.
- subtitles: {"enabled"?: bool, "style"?: "tiktok"|"phrases"|"contrast",
  "appearance"?: {"alignment"?, "font_size"?, "font_family"?, "text_color"? (hex "#RRGGBB"),
  "color_saturation"?}} - you cannot disable subtitles and set their style/appearance in the
  same call, that fails with 422 validation_error; disable them in one call and restyle in a
  later one.
- music: {"enabled"?: bool, "url"?: str} - url must come from tegas_upload_music (or another
  public https URL).
- volumes: {"voice"?: int, "music"?: int, "master"?: int} - each 0..100.
- watermark: bool - the Tegas watermark on the finished video. Must be the ONLY change in the
  call, not combined with scenes/voice/subtitles/music/volumes: the renderer rebuilds the
  watermark through a separate step, so mixing it with other changes fails with 422
  validation_error. Change the watermark in its own call.

Returns video_id, status "processing" and edits_accepted - the list of groups that were actually
applied (e.g. ["voice", "subtitles"], or ["watermark"] for a watermark-only edit). If the video is
still rendering or being rebuilt from a previous edit, this fails with 409 video_busy or edit_in_progress (the edit was NOT accepted) - wait for
status completed (tegas_wait_video) and try again, do not retry immediately in a loop.

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": {
      "video_id": "<video_id>"
    },
    "name": "tegas_edit_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
musicNo
voiceNo
scenesNo
volumesNo
video_idYes
subtitlesNo
watermarkNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare destructiveHint=true; the description goes far beyond that with a cost model (about 10 T per re-voiced scene, other group changes free, failed edits refunded), a full-replacement warning, a multi-minute duration expectation, and concrete 422/409 error semantics including that a 409 means the edit was NOT accepted. These are exactly the operational facts an agent needs before invoking a destructive mutation.

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?

Dense but nearly every line earns its place, and the bulleted group breakdown is highly scannable. Minor criticism: the billing/token paragraph leads the description ahead of the purpose statement, and a phrase like "do not retry immediately in a loop" restates the preceding wait instruction.

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 destructive 7-parameter mutation with a zero-coverage schema, this is as complete as a definition can be: cost, timing, replacement semantics, per-group parameter shapes, conflicting-field rules, and error recovery are all covered, and it still summarizes the return payload despite an output schema existing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the schema types every group as an untyped object with additionalProperties, so the description carries the entire burden — and it does: per-group field lists, enum values for gender/language/style, hex format for text_color, 0..100 ranges for volumes, and the crucial semantic note that changing voice id/gender/language re-voices EVERY scene with voice-over, not just the listed ones.

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?

"Edit a finished video in place and rebuild it" gives a specific verb and resource, and the follow-up "this REPLACES the whole video end to end ... it is not a quick patch" distinguishes it from a light-touch patch or a fresh render via tegas_start_video. An agent knows exactly what class of operation this is before 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 Guidelines5/5

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

Explicit pre-call protocol (tell the user what will change), explicit post-call protocol (poll with tegas_wait_video or tegas_video_status), an explicit prohibition (do not call again for the same video until the rebuild finishes), and an explicit "omit a group to leave it untouched" rule. Two hard exclusions are named with their failure modes: watermark must be the only change, and subtitles cannot be disabled and restyled in one call.

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.