Skip to main content
Glama

Trim video

trim_video

Cut a video down to a time range using a start time and either an end time or duration. Accepts times in seconds or clock format, with an option to copy streams without re-encoding.

Instructions

Cut a video down to a time range. Give a start time plus either an end time or a duration (omit both to keep everything from start to the end of the file). Times are seconds (12.5) or clock form (1:23:45.6).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endNoEnd time
startNoStart time (default: beginning of file)
durationNoLength to keep, instead of an end time
fast_copyNoCopy streams without re-encoding: much faster, but cuts snap to keyframes so they can be off by a second or two (default false)
input_pathYesPath to the source video
output_pathNoWhere to write the result (default: alongside the input)
Behavior3/5

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

No annotations are provided, so the description carries the full burden for behavioral transparency. It does not disclose whether the tool creates a new file, what the default output behavior is, or that re-encoding vs stream copy affects accuracy. It does add context about time formats, but that is more parameter semantics than behavioral disclosure.

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?

The description is just two sentences, front-loaded with the core purpose and containing zero filler. Every sentence adds useful information about usage and time formats.

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?

The description covers the main usage pattern for trimming, but it omits that the start parameter is optional (defaults to beginning of file per schema), and it does not mention the default output_path behavior. With six parameters and no output schema, these gaps make it slightly incomplete for a broader understanding.

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?

The schema provides full descriptions for all six parameters (100% coverage), so the baseline is 3. The description adds meaningful value by explaining that times can be seconds (12.5) or clock form (1:23:45.6) and by clarifying the rule for omitting both end and duration. This goes beyond the schema's individual parameter descriptions.

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?

The description uses the specific verb 'Cut' with the resource 'video' and clearly defines the scope as 'a time range', distinguishing it from siblings like crop_video (spatial cropping) and concat_videos (joining videos). It is immediately clear what the tool does.

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 explicit instructions on how to specify parameters: provide a start time plus either an end time or duration, and that omitting both keeps everything from start to file end. It also explains accepted time formats. However, it does not mention when to use this tool over alternatives, such as when to prefer fast_copy for quick cuts versus re-encoding for precision.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gulkoa/vidshaper'

If you have feedback or need assistance with the MCP directory API, please join our Discord server