Skip to main content
Glama

video_mix_audio

Mix timed audio tracks into a video while preserving the picture and source-audio timing, with one AAC encode and stream-copied video.

Instructions

Mix timed sounds with one AAC encode and stream-copy the primary picture.

Sounds is an array or JSON array of objects with path, start (seconds), volume (linear gain), fade_in and fade_out (seconds). The picture duration and relative source-audio timing are preserved. Tracks sum without loudness normalization and may clip. Existing audio stays unless keep_source is false. The synchronous media engine runs in a worker thread; no background job or governed audio-bed receipt is created. Listen before publishing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
soundsYes
input_pathYes
keep_sourceNo
output_pathNo
audio_bitrateNo256k

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.16.0

TDQS

A3.7/5.0
Behavior5/5

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

With no annotations the description carries the full burden and does so well: it discloses the encode strategy (single AAC encode, stream-copy picture), that tracks sum without loudness normalization and may clip, that source audio is retained unless keep_source=false, that duration and relative timing are preserved, and that execution is synchronous in a worker thread with no background job or governed audio-bed receipt.

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 core operation, then parameter format, then behavioral caveats. Every sentence carries information (clipping warning, keep_source, threading model), though the 'no governed audio-bed receipt' clause is slightly opaque and the density is high.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return values need no explanation, and the description covers the mutation semantics, audio mixing behavior, and execution model. Only the path/bitrate parameters remain unaddressed, which is a minor gap for an otherwise complete picture.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must compensate. It documents the complex 'sounds' parameter thoroughly (path, start in seconds, volume as linear gain, fade_in/fade_out in seconds) and explains keep_source behavior, but input_path, output_path, and audio_bitrate are left unexplained beyond what their names imply.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (mix) and resource (timed sounds into the primary picture) plus the encoding strategy ('one AAC encode and stream-copy the primary picture'), which differentiates it from a plain re-encode. It does not name a specific sibling (e.g. video_add_audio or video_add_generated_audio) to contrast against, so sibling differentiation is implied rather than explicit.

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

Usage Guidelines2/5

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

No when-to-use/when-not guidance and no alternatives named, despite many overlapping siblings (video_add_audio, video_add_generated_audio, video_normalize_audio, sound_mix_render). The closing 'Listen before publishing' hints at a QA context but is not a usage rule.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools