Skip to main content
Glama

Crop video frame

video_crop
Destructive

Crop a video to a rectangular region or centered percentage, producing a new output file.

Instructions

Crop an existing video to a rectangular region or centered percentage crop and render a new output file. The source video is read only; x/y default to a centered crop when omitted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
input_pathYesAbsolute path to an existing local video file. The input file is read only.
widthNoCrop region width in pixels. Pair with height unless using crop_percent.
heightNoCrop region height in pixels. Pair with width unless using crop_percent.
xNoOptional X offset in pixels. Defaults to a centered crop when omitted.
yNoOptional Y offset in pixels. Defaults to a centered crop when omitted.
output_pathNoDestination video path. Auto-generated when omitted; an existing supplied path may be overwritten.
crop_percentNoCentered crop percentage of original dimensions, such as 50 for the center 50%.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

The description discloses key behavioral traits: source read-only, output may overwrite existing files, and default centering behavior. This adds value beyond the annotations (destructiveHint=true) without contradiction.

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 sentences with no wasted words. The description is front-loaded with the core action and gracefully handles details.

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 7 parameters and an output schema, the description covers essential aspects: two crop modes, default behavior, source read-only, and output path auto-generation. Lacks format/performance details but sufficient for a crop tool.

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 coverage is 100% and schema descriptions are detailed. The description adds marginal value by summarizing two crop modes and default centering, but does not significantly enhance parameter understanding beyond 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 clearly states the tool's purpose: 'Crop an existing video to a rectangular region or centered percentage crop and render a new output file.' It specifies the verb (crop), resource (video), and distinguishes from sibling tools like video_resize or video_rotate.

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 provides clear usage context ('source video is read only', 'x/y default to a centered crop when omitted') but lacks explicit guidance on when to choose rectangular vs. percentage crop or mention of alternative 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/KyaniteLabs/mcp-video'

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