Skip to main content
Glama

ffmpeg_trim

Trim a video to extract a specific segment by specifying a start time and either an end time or a duration. Returns the file path of the trimmed video.

Instructions

Trim a video to extract a specific segment.

Args:
    file_path: Path to the input video file
    start_time: Start time (e.g., "00:01:30" or "90" for 90 seconds)
    end_time: End time (e.g., "00:02:00"). Mutually exclusive with duration.
    duration: Duration of the clip (e.g., "30" for 30 seconds). Mutually exclusive with end_time.

Returns:
    Path to the trimmed file

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
start_timeYes
end_timeNo
durationNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

The description notes the mutual exclusivity of end_time and duration, which is important. However, it does not disclose whether the original file is modified, or any error behavior (e.g., invalid times). No annotations are present to compensate.

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 concise with a clear structure: a one-line summary followed by Args and Returns sections. Every sentence is relevant and efficient.

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 4-parameter tool with no annotations, the description covers parameter usage but lacks information about supported video formats, error handling, and output details beyond a file path. The presence of an output schema partially mitigates Return documentation.

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?

With 0% schema description coverage, the description provides clear explanations for each parameter, including examples for time formats and the mutual exclusivity condition, adding significant meaning beyond the schema.

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 states 'Trim a video to extract a specific segment' with a specific verb and resource. This clearly distinguishes it from siblings like ffmpeg_extract_audio or ffmpeg_compress.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives like ffmpeg_extract_frames or ffmpeg_convert. The description does not mention prerequisites or exclusions.

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/kevinwatt/ffmpeg-mcp-lite'

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