Skip to main content
Glama

Add Audio To Video

add_audio_to_video

Put a new audio track, such as narration from generate_speech or music from generate_music, on a video. Costs 2 credits. Returns a job immediately; check_job returns the permanent URL once it is completed. A failed job is refunded automatically.

audio_mode=replace (default) discards the video's own audio, including dialogue and ambience, and the output ends at the shorter of the video and the new audio. audio_mode=mix keeps the video's audio and layers audio_url over it, and the output keeps the video's full length; original_volume and added_volume (0 to 1) set each track's gain, with about 0.3 keeping music under dialogue. start_offset delays the new audio. To let the added audio run past the end of the video, use stitch_clips with that one video clip plus audio.

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_url": "<video_url>",
      "audio_url": "<audio_url>"
    },
    "name": "add_audio_to_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
audio_urlYesAudio to add, such as narration or music.
force_newNoAn identical request submitted in the last 10 minutes returns that job without charging again; true generates it again.
video_urlYesVideo to put the audio on.
audio_modeNoDefault: replace.
skills_usedNoOptional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs.
added_volumeNoWith mix: gain of audio_url, 0 to 1. Default: 1.
start_offsetNoSeconds after the video starts when the audio begins. Default: 0.
budget_projectNoOptional budget project this generation's cost counts toward, for tracking spend per client or job. Pass its slug; an id or the exact display name also works. Create one with create_budget_project and find slugs with list_budget_projects. An unknown project never stops the generation: it runs without one, and the result warns how to add it with assign_to_budget_project.
original_volumeNoWith mix: gain of the video's own audio, 0 to 1. Default: 1.

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 only declare the generic profile (not read-only, not idempotent, open-world), while the description supplies the operationally important facts: 2-credit cost, asynchronous job return with check_job for the permanent URL, and automatic refund on failure. It also discloses that replace mode destroys the source video's dialogue and ambience and shortens the output, which is exactly the kind of consequence an agent needs before choosing a mode.

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 action, cost, and async contract, then a second paragraph that groups all mode-dependent behavior together. Dense but every sentence carries information; the mode paragraph is long, though trimming it would lose real decision-relevant detail.

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 9-parameter asynchronous generation tool with no output schema, the description covers everything an agent needs: what it produces, cost, job polling path, refund behavior, and the full replace-versus-mix trade-off including output length and gain semantics.

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 baseline is 3, but the description genuinely adds meaning: it explains how audio_mode changes output length, that original_volume and added_volume are 0-to-1 gains with a practical 0.3 starting point for music under dialogue, and that start_offset delays the added audio. It does not cover force_new or budget_project, which are left entirely to the schema text.

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?

States a specific verb and resource ('Put a new audio track ... on a video') and immediately situates it against sibling capabilities by naming generate_speech and generate_music as typical audio sources. An agent can distinguish this from stitch_clips or isolate_audio 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 Guidelines5/5

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

Explicitly contrasts the two modes and the conditions that select them: replace discards the video's audio and truncates to the shorter input, mix preserves audio and full length. It also names the alternative for a related need — use stitch_clips when the added audio should run past the video's end — so both when-to-use and when-to-use-something-else are 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.