Skip to main content
Glama

Concatenate clips

concat

Join multiple video or audio clips end-to-end into a single file. Use copy mode for same-codec inputs (lossless) or reencode mode to normalize mismatched codecs and resolutions.

Instructions

Join multiple clips end-to-end into one file. Use mode='copy' (default) when all inputs share the same codec/resolution (fast, lossless); use mode='reencode' to normalize mismatched inputs.

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": "concat"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNocopy = stream copy (same codecs); reencode = normalize.copy
inputsYesPaths of the clips to join, in order.
outputYesPath for the joined output file.
overwriteNoOverwrite the output file if it already exists.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 copy is fast and lossless while reencode normalizes mismatched inputs, but it says nothing about failure behavior on incompatible streams, cost/slowness of reencoding, or that the output is overwritten only when overwrite is set.

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?

Two tight sentences with no filler; the core action is front-loaded and the mode guidance follows logically. Slightly dense parenthetical asides, but nothing worth cutting.

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 simple four-parameter concatenation tool with full schema coverage and no output schema, the description covers what the tool does and how to pick the critical mode. Only minor behavioral details (error handling on mismatched inputs, overwrite implications) are absent.

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 schema already documents all four parameters, including the mode enum. The description's mode explanation largely duplicates the schema's own 'copy = stream copy (same codecs); reencode = normalize' wording, adding little beyond it, 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 definition states a specific verb and resource ('Join multiple clips end-to-end into one file'), which is unambiguous and distinct from sibling operations like trim, overlay, or convert. It does not explicitly name or route against any sibling, so it falls 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 Guidelines4/5

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

It gives explicit conditional guidance for the key decision point: use mode='copy' when codecs and resolutions match, use mode='reencode' to normalize mismatches. There is no when-not-to-use guidance relative to alternatives (e.g., prepare inputs with convert first), which keeps it at 4.

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