Skip to main content
Glama

add_audio

Add or replace an audio track in a video, choosing to mix it with the original audio or replace it entirely; set the added audio's volume as needed.

Instructions

Add or replace audio track in video. Mix with original audio or replace entirely.

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": "<video>",
      "audio": "<audio>"
    },
    "name": "add_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoreplace: remove original audio; mix: overlay with originalreplace
audioYesAudio file to add/overlay
videoYesInput video file path
outputNoOutput file path
volumeNoVolume of the added audio (0-2)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose that 'replace' discards the original audio while 'mix' retains it, which is the key side effect. It omits other behavioral facts: whether the input file is modified in place, whether an output path is required, and overwrite behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, zero filler, and the core purpose plus its main behavioral fork are front-loaded. Every sentence earns its place.

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

Completeness3/5

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

For a five-parameter mutation tool with no annotations and no output schema, the description is adequate on intent but thin on operational details like output path handling, in-place mutation, and error/overwrite behavior. The rich schema compensates for parameter-level gaps, but behavioral coverage remains incomplete.

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 coverage is 100%, so all five parameters, including the mode enum and volume bounds, are already documented in the schema. The description frames the two modes at a conceptual level but adds no syntax, defaults, or format detail beyond what the schema provides, so baseline 3 applies.

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?

The description gives a specific verb (add/replace) and resource (audio track in video) and states the two operating modes. It is clearly distinguishable from extract_audio (opposite direction) and volume, though it never names a sibling explicitly.

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

Usage Guidelines3/5

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

"Mix with original audio or replace entirely" implies which mode to pick for a desired outcome, which is useful context. However, there is no explicit when-to-use/when-not guidance relative to siblings such as extract_audio, volume, or merge, so the agent must infer.

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