Skip to main content
Glama

Replace audio

replace_audio

Replace a video's existing audio with a new audio file, such as background music or voiceover. The output length matches the shorter of video or audio unless looping is enabled.

Instructions

Replace a video's audio track with a different audio file (e.g. background music or a voiceover). The output ends when the shorter of the two ends, unless loop_audio is set.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
audio_pathYesPath to the new audio file
input_pathYesPath to the source video
loop_audioNoLoop the audio to cover the whole video (default false)
output_pathNoWhere to write the result
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses an important non-obvious behavior: the output duration follows the shorter of the two sources unless loop_audio is set. This adds value beyond the schema. It doesn't cover every edge case, but the key behavioral trait is disclosed.

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?

The description is exactly two sentences, front-loaded with the primary action, and includes only relevant details. There is no redundancy or filler.

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?

For a tool with a clear schema and simple operation, the description covers purpose and key behavior. It does not explicitly state whether the input is modified or a new file is created, but the output_path parameter strongly implies a new file. Minor gap, but overall sufficient.

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 100%, so the baseline is 3. The description adds a slight nuance by connecting loop_audio to the duration behavior, but this partially overlaps with the schema's description for that parameter. No other parameters receive additional detail beyond what the schema already states.

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?

The description uses a specific verb ('Replace') and identifies the exact resources (a video's audio track and a different audio file). It clearly distinguishes this tool from siblings like remove_audio or extract_audio by conveying a swap action.

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

Usage Guidelines4/5

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

The description gives clear context by providing examples ('background music or a voiceover') and implies the use case of swapping out the audio track. It does not explicitly name alternatives or exclusions, but the action is distinct enough to guide the agent.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gulkoa/claudeclip'

If you have feedback or need assistance with the MCP directory API, please join our Discord server