Skip to main content
Glama

reframe

Change a video's aspect ratio to 9:16, 1:1, 16:9, or 4:5 using centered crop, solid-color padding, or blurred-background padding; crop mode supports focus bias and subject tracking.

Instructions

Reframe a video to 9:16, 1:1, 16:9 or 4:5. Modes: a centered crop (default), solid-color padding, or blurred-background padding. In "crop" mode, focusX/focusY bias the crop (0..1), and "follow" tracks the subject across time using an optional, lazily-loaded face detector.

Input Schema

NameRequiredDescriptionDefault
modeNo"crop" (default), "pad" (solid color) or "blur-pad" (blurred background).
inputYesPath to the source video
aspectYesTarget aspect ratio
focusXNoHorizontal crop focus, 0 (left) .. 1 (right). Default 0.5 (center).
focusYNoVertical crop focus, 0 (top) .. 1 (bottom). Default 0.5 (center).
followNoTrack the subject over time with a lazy face detector (crop mode only).
heightNoOutput height in pixels (default: crop/source height).
outputYesPath of the reframed video to write
padColorNoffmpeg pad color for "pad" mode (e.g. "black", "0x0000ff"). Default "black".
overwriteNoReplace the output file if it exists (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full load. It does disclose useful behavior beyond the schema: that focusX/focusY only bias the crop in crop mode, and that "follow" invokes an optional, lazily-loaded face detector, hinting at added latency. It omits that this is a compute-heavy write operation producing a new file, and says nothing about output overwrite semantics or failure modes.

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?

Three tight sentences with the verb, targets and mode list front-loaded. Minor redundancy: the mode enumeration restates the schema enum and the per-parameter mode descriptions, so a few words could be cut.

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?

For a 10-parameter tool with no annotations and no output schema, the description covers modes, crop focus and subject tracking adequately, and the schema fully documents defaults and ranges. It leaves the write-side story (overwrite behavior, cost of processing long videos) unaddressed, which is the main remaining gap.

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 coverage is 100%, so the baseline is 3, but the description adds interaction semantics the schema's per-field text does not: focusX/focusY are gated to crop mode, and "follow" is a time-varying subject tracker rather than a static offset. That crossover context is genuine added value.

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?

States a specific verb and resource ("Reframe a video") plus the exact target aspect ratios and the three supported modes. No sibling (trim, cut, compose, render) does reframing, so an agent can route here decisively without opening the schema.

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 establishes the default mode ("centered crop (default)") and mode-specific constraints, which helps pick a mode, but it offers no guidance on when to choose reframe over siblings like render or compose, nor any prerequisites. Usage is implied rather than stated.

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