Skip to main content
Glama

trim

Cuts a segment from a media file by specifying start and end times or duration. Uses stream copy for fast trimming without re-encoding.

Instructions

Cut/trim a segment from media file by specifying start time and end time or duration. Uses stream copy (fast, no 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": {
      "input": "<input>",
      "start": "<start>"
    },
    "name": "trim"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoEnd time (HH:MM:SS or seconds)
inputYesInput media file path
startYesStart time (HH:MM:SS or seconds, e.g., '00:01:30' or '90')
outputNoOutput file path
durationNoDuration (HH:MM:SS or seconds). Alternative to end

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations present, the description must carry the behavioral burden, and it does add one genuinely valuable fact: stream copy means fast, no re-encoding. However, it omits important consequences of that choice — keyframe-boundary accuracy, whether the output is overwritten, what happens if 'output' is omitted, and what the tool returns.

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 short sentences, zero filler, with the core operation stated first and the implementation property (stream copy) second. Nothing could be removed without losing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a no-annotation mutation tool with no output schema, the definition covers the operation but leaves gaps an agent would want: default output behavior, overwrite semantics, and the accuracy trade-off of stream copy. It is adequate to select the tool, not fully adequate to predict its results.

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 five parameters are already fully documented, including format examples for start. The description only reinforces that end time or duration can be specified, which the schema already states via 'Alternative to end'. 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 description gives a specific verb and resource — 'Cut/trim a segment from media file' — and names the temporal bounds that define the operation. This implicitly separates it from spatial siblings like crop/resize, but it never names or contrasts those siblings explicitly, so differentiation is left to inference.

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?

Usage is implied: you call this when you want to extract a sub-segment of a media file. There is no explicit when-to-use vs. when-not, no mention of alternatives (e.g., crop for spatial cuts, convert for format changes), and no stated prerequisites about the output file.

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