Skip to main content
Glama

merge

Concatenate multiple media files into one output; choose same-codec concatenation for matching formats or cross-codec re-encoding for different inputs.

Instructions

Concatenate multiple media files into one. Supports same-codec fast concat or cross-codec re-encoding.

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": {
      "inputs": "<inputs>",
      "output": "<output>"
    },
    "name": "merge"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputsYesArray of input file paths to concatenate
methodNoconcat_demuxer: same codec, fast. concat_filter: different codecs, re-encodesconcat_demuxer
outputYesOutput file path

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/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 behavioral burden. It usefully discloses that the cross-codec path re-encodes (implying generation loss and slower runtime) and that concat requires matching codecs, but it omits overwrite behavior for the output path, failure modes on incompatible inputs, and permission or resource considerations.

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 sentences, zero waste, with the core action front-loaded and the mode trade-off immediately after. Nothing can be cut without losing information.

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 three-parameter tool with no output schema, the description covers purpose and the key operational fork. What's missing — output overwrite semantics and input compatibility constraints — is modest but real given the absence of annotations.

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% and the method enum is already documented, so the baseline is 3. The description adds real meaning by framing the two enum values as a fast/no-reencode trade-off rather than leaving them as opaque identifiers.

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?

A specific verb plus resource ('Concatenate multiple media files into one') that clearly separates it from siblings like convert, compress, and trim. It doesn't explicitly name a sibling or state a boundary, so it stops short of a 5.

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?

The description implicitly guides mode selection by pairing 'same-codec fast concat' with 'cross-codec re-encoding', which mirrors the method enum. It never says when to prefer merge over alternatives such as convert, or what to do when inputs have mismatched resolution, frame rate, or audio streams.

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