Skip to main content
Glama

Edit original audio

edit_original_audio

Edit a clip that plays its ORIGINAL RECORDING (a screen or camera recording with the speaker's own voice, not an AI voice) by its transcript words: cut words out of the video, bring cut words back, mute words, fix a mis-transcribed word, and remove filler words and long pauses. get_clip's original_audio (words, cut_words, muted_words, fillers_left, pauses_left) says which clips this applies to and what is left to clean up. AI-voice clips are refused: change their script with voiceover_batch.

Start with action="list" on the clip: words [{i, text, start (playback seconds; absent when cut), cut?, muted?, filler?}], pauses [{after_word_index, seconds, cut}], cut_seconds. Address words by i (start_word_index, end_word_index inclusive; end defaults to start). Pass both to list only part of a long transcript. Then:

  • cut (start_word_index, end_word_index?) — remove those words' audio AND video from the clip; the clip gets shorter and every later element moves back with its footage (one inside the cut is cropped or removed). The words stay in the transcript as cut, so restore brings them back.

  • restore (start_word_index, end_word_index?) — bring back everything cut between those words, inclusive. restore_all — bring back every cut.

  • remove_fillers — cut every hesitation sound still playing (um, uh, er, ah, hmm, ...). Words like "like" or "you know" are kept: they are often meant.

  • remove_pauses — shorten every silence of 1 s or more between words to 0.3 s.

  • list_retakes — find retakes: the speaker abandoned a sentence and said it again ("Click the share- sorry. Click the Export button."). Returns retakes [{takes: [text of each take], keep: index of the take to keep, reason}]. Lists, repeated steps and emphasis are not retakes. remove_retakes — cut every take that isn't kept (its cue and pause go with it).

  • mute (start_word_index, end_word_index?) / unmute — silence words without cutting them; the video keeps playing.

  • correct (start_word_index, end_word_index?, text) — fix what the transcript SAYS (a misheard name) without touching the audio. Only the transcript text changes: captions and exports still show the words as recorded. Within one paragraph. To change what is spoken, use an AI voice.

Each write returns what changed (seconds_cut, seconds_restored, removed, words_changed, words_corrected). Undo a cut with restore / restore_all, a mute with unmute; the editor's undo does not revert these writes. Cuts change the clip's duration: re-read element timings before placing timed elements.

Concurrency: clip-scoped mutation — serialize calls on the SAME clip (they rewrite its timing and elements); different clips run in parallel. Not alongside voiceover_batch, update_clips or split_clip on that clip.

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": {
      "project_id": "<project_id>",
      "clip_index": "<clip_index>",
      "action": "<action>"
    },
    "name": "edit_original_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNocorrect — what the words should read.
actionYesWhat to do — see the tool description
clip_indexYesZero-based clip index
project_idYesThe project ID
end_word_indexNoThe last word, inclusive; defaults to start_word_index.
start_word_indexNocut/restore/mute/unmute/correct (and list): the first word, `i` from list.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that cuts shorten the clip and shift all later elements, that an element inside a cut is cropped or removed, that undo in the editor does NOT revert these writes (only restore/unmute do), the per-write return fields, and the concurrency constraint (serialize per clip; avoid voiceover_batch/update_clips/split_clip on the same clip). The only mild tension is destructiveHint=false versus footage being cropped or removed inside a cut, but the description discloses that outcome rather than hiding it, so it does not contradict the annotation outright.

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 the capability and eligibility summary, then a scannable action-per-bullet layout that is proportionate to an 11-action multiplexed tool. Every bullet carries operational content, though there is slight repetition (restore semantics explained both in the cut bullet and its own) and the illustrative retake dialog could be shortened.

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?

No output schema exists, and the description compensates by describing what each write returns (seconds_cut, seconds_restored, removed, words_changed, words_corrected) and the shape of list/list_retakes responses. It closes the loop on duration changes, undo paths, and unsafe parallel calls, which are the failure modes that would otherwise bite an agent.

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 coverage is already 100%, yet the description adds real meaning: `i` is the word identity from list, start/end are inclusive and end defaults to start, which actions accept word ranges, and passing both to list only slices a long transcript. It also documents the shapes of the values the agent must reason about (`words` fields including start absent when cut, `pauses`, `retakes` with keep/reason).

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?

Specific verb+resource ("Edit a clip that plays its ORIGINAL RECORDING … by its transcript words") plus an enumerated capability list (cut, restore, mute, correct, remove fillers/pauses, retakes). It draws the crucial boundary against AI-voice clips and names the sibling to use instead (voiceover_batch), so an agent can separate this from edit_animation, add_audio or captions without opening a 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 eligibility rule (a clip whose get_clip `original_audio` indicates it is original recording), an explicit exclusion (AI-voice clips are refused → voiceover_batch), a prescribed first step (action="list"), and an action-by-action mapping of when to use cut vs restore vs mute vs correct. It even states the correct is transcript-only and that spoken change requires an AI voice, which is the exact ambiguity an agent would hit.

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.