Skip to main content
Glama

trim

Cut a section from a video or audio file by setting start and end or duration; choose accurate re-encoding for frame-exact cuts or fast lossless stream copying.

Instructions

Cut a section out of a video or audio file.

start, end, duration: seconds (12.5) or [HH:]MM:SS[.ms] ("1:02:03.5"). Give start and end, or start and duration; with only start the cut runs to the end of the file. mode: "accurate" (default) re-encodes so the cut is frame-exact; "fast" copies the streams without re-encoding (instant, lossless) but the cut snaps to the keyframe before start, so the clip may begin a little early. Default output: name.trimmed.ext.

Input Schema

NameRequiredDescriptionDefault
endNo
modeNoaccurate
inputYes
startNo
outputNo
dry_runNo
durationNo
overwriteNo
timeout_sNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does meaningful work: it discloses re-encoding behavior, the keyframe-snapping side effect in fast mode ("the cut may begin a little early"), and the default output filename. It omits what happens when the output file already exists (the role of overwrite) and what dry_run returns, which are notable gaps for a mutating file tool.

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?

Front-loads the one-line purpose, then organizes the rest as short labelled lines for the time parameters and for mode. Every sentence carries information an agent needs; no restatement of the tool name 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?

An output schema exists, so return-value explanation is correctly omitted, and the tricky temporal/mode semantics are well covered for a nine-parameter tool. The remaining shortfall is operational: no statement of overwrite behavior, dry_run semantics, or the timeout default's implications.

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 description coverage is 0%, so the description must compensate, and it does for the hardest parameters: the accepted time formats for start/end/duration (seconds, [HH:]MM:SS[.ms], with examples), the mutual exclusivity of end vs duration, the mode values, and the output naming default. It leaves dry_run, overwrite, and timeout_s entirely to their bare names, so three of nine parameters get no added meaning.

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?

Opens with a specific verb and resource: "Cut a section out of a video or audio file." That cleanly separates it from join-oriented siblings like concat, or re-encode-only siblings like convert/compress, without the agent needing to open a schema.

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?

Gives concrete usage rules: supply start+end or start+duration, and with only start the cut runs to EOF. It also frames the accurate-vs-fast tradeoff as a selection decision (frame-exact vs instant/lossless). It stops short of explicitly contrasting against siblings such as extract_audio or make_gif, so no exclusions are stated.

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