Skip to main content
Glama

trim_and_concat_operation

Trim video segments and concatenate them into a single portrait-oriented video with normalized format and positioning.

Instructions

Trim and concatenate multiple videos (portrait orientation, normalize format).

Args: inputs (list[dict]): Each dict must have: - 'path' (str): path to the video file - 'start_time' (str, optional): start time in seconds - 'end_time' (str, optional): end time in seconds width (int): Width to scale each video (portrait). height (int): Height to scale each video (portrait). x (int): X position for overlay (default 0). y (int): Y position for overlay (default 0).

Returns: str: Path to the output video if successful. None: If an error occurs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputsYes
widthNo
heightNo
xNo
yNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses key behavioral traits: it outputs a video file path on success or None on error, and mentions normalization and portrait orientation constraints. However, it lacks details on permissions, rate limits, file format specifics, or what constitutes an error. The description adds value but doesn't fully compensate for the absence of annotations.

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?

The description is appropriately sized and well-structured with clear sections for Args and Returns. Every sentence adds value: the first states the purpose, the Args section details parameters, and Returns explains outcomes. It could be slightly more concise by integrating the portrait orientation note into the purpose statement, but overall it's efficient.

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?

Given 5 parameters with 0% schema coverage and no annotations, the description does a good job explaining inputs, outputs, and constraints. The output schema is present (Returns section), so return values are covered. It addresses the core functionality but could improve by mentioning error conditions or format normalization details to reach full completeness.

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. It provides detailed semantics for all 5 parameters: 'inputs' structure with path and optional time ranges, 'width' and 'height' for scaling, and 'x' and 'y' for overlay positioning. Default values are mentioned for x and y. This adds substantial meaning beyond the bare schema, though it doesn't cover all possible edge cases.

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 clearly states the specific action: 'Trim and concatenate multiple videos' with additional constraints 'portrait orientation, normalize format'. This distinguishes it from siblings like 'concat_clips_with_transition' (which adds transitions) and 'clip_video' (which only trims single videos). The verb+resource+scope combination is precise and differentiated.

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?

The description implies usage for portrait-oriented video concatenation with trimming, but provides no explicit guidance on when to choose this tool over alternatives like 'concat_clips_with_transition' or 'get_normalized_clips'. It mentions 'portrait orientation' as a constraint, which helps narrow the context, but lacks clear exclusions or comparison to sibling tools.

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

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