Skip to main content
Glama

Merge audio

merge_audio

Join MP3 or M4A files into one track in the order given without re-encoding. Use it when clips share the same format, sample rate and channels; returns the saved path and duration.

Instructions

Join two or more MP3 files, or two or more M4A files, into one track in the order given, without re-encoding. The files must share the same format, sample rate and channels; otherwise an error explains the mismatch. Returns the saved path and total duration; inputs are not changed.

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": {
      "files": "<files>"
    },
    "name": "merge_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesAudio paths, in order.
outputNoWhere to save the result. Defaults to a new file next to the input.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare readOnly=false, destructive=false, idempotent=false, and openWorld=false; the description adds real value by stating there is no re-encoding, inputs are left unchanged, and format mismatches produce an explanatory error. It does not discuss what happens if the output path already exists, which is the main remaining behavioral gap for a non-idempotent write.

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?

Three compact sentences, front-loaded with the core action and constraint, then the failure mode, then the return value and non-mutation guarantee. No filler.

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?

There is no output schema, so the description correctly supplies the return contract (saved path plus total duration). For a two-parameter tool with full schema coverage and annotations, the definition covers constraints, errors, and side effects completely.

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; the description goes slightly beyond the schema by emphasizing that concatenation order follows the supplied order and that all entries must be format-compatible with each other. It adds no detail about the output parameter, which the schema already covers with its default.

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 (join/merge), the exact resource (MP3 or M4A audio files), and the scope (two or more files into one track, in order, without re-encoding). An agent can immediately distinguish this from merge_pdf and from split_audio/trim_audio siblings.

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 the operative precondition for use: files must share format, sample rate, and channels, and mixing MP3 with M4A is disallowed. It does not explicitly route to alternatives such as split_audio or audio_info, but the usage conditions are clear enough to decide when this tool applies.

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