Skip to main content
Glama

get_normalized_clips

Normalize multiple video clips in parallel by adjusting resolution, frame rate, codec, and compression parameters to ensure consistent media quality.

Instructions

Normalize multiple video clips in parallel by adjusting resolution, frame rate, codec, and compression parameters.

Parameters: input_video_clips (list[str]): should give input video clips in the form of string resolution (tuple, optional): Target resolution as (width, height). Defaults to (1280, 720). frame_rate (int, optional): Target frame rate. Defaults to 30. crf (int, optional): Constant Rate Factor for quality control (lower = better quality). Defaults to 23. audio_bitrate (str, optional): Target audio bitrate. Defaults to '128k'. preset (str, optional): Encoding speed vs. compression efficiency preset. Defaults to 'fast'. max_workers (int, optional): Number of parallel worker threads. If None, uses os.cpu_count().

Returns: list: Sorted list of file paths to the successfully normalized video clips.

Notes: - Runs normalization tasks in parallel using ThreadPoolExecutor. - Includes a progress bar (tqdm) to track processing status. - Automatically determines the number of workers based on CPU cores if not specified. - Skips clips that encounter errors but continues processing the rest.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
input_video_clipsYes
resolutionNo
frame_rateNo
crfNo
audio_bitrateNo128k
presetNofast
Behavior4/5

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

With no annotations provided, the description carries the full burden and does so well by disclosing key behavioral traits: it runs tasks in parallel using ThreadPoolExecutor, includes a progress bar, automatically determines workers based on CPU cores, and skips clips with errors while continuing processing. This covers execution method, user feedback, resource management, and error handling without contradictions.

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 front-loaded, starting with the core purpose, followed by structured sections for parameters, returns, and notes. Every sentence adds value, such as explaining defaults and behavioral notes, but it could be slightly more concise by integrating some parameter details into the initial summary.

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 the complexity of a 6-parameter tool with no annotations or output schema, the description is largely complete: it explains the tool's purpose, all parameters, return values (sorted list of file paths), and key behaviors like parallel processing and error handling. However, it lacks details on output formats or error messages, which could enhance 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?

The schema description coverage is 0%, so the description must compensate, and it does by explaining all parameters beyond the schema. It adds meaning for each optional parameter (e.g., resolution as tuple, crf for quality control, preset for encoding speed vs. efficiency, max_workers for parallel threads), though it could provide more detail on valid ranges or formats for some parameters like 'preset'.

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 tool's purpose with specific verbs ('normalize multiple video clips in parallel') and resources ('video clips'), distinguishing it from siblings like 'scale_video' or 'crop_video' by focusing on comprehensive normalization across resolution, frame rate, codec, and compression parameters rather than single transformations.

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 batch normalization of video clips but does not explicitly state when to use this tool versus alternatives like 'scale_video' for resolution changes only or 'clip_video' for trimming. It mentions parallel processing and error handling, which provides some context, but lacks direct comparison or exclusion criteria for 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