Skip to main content
Glama

Cut And Reframe Video

cut_and_reframe_video

Create one edited MP4 by cutting and reordering selected time ranges of a video in your Library, keeping the original audio, and reframing each cut for portrait, landscape, square or custom output. Does not choose highlights, transcribe, keep selectable subtitle streams or track faces. Costs 2 credits per started 30 output seconds. Returns a job immediately; check_job returns the permanent URL once it is completed. A failed job is refunded automatically.

1 to 40 non-overlapping ranges, each at least 150 ms, up to 300 output seconds. The source must be a video in your Library; import it with upload_asset first. Ranges are half-open and play in the order listed. Framing is set per range: {"mode":"pad"} keeps the whole frame, {"mode":"center_crop"} fills it, {"mode":"crop"} takes a source-pixel rectangle matching the output aspect ratio with static x and y or up to 20 keyframes (times start at zero for that range). Odd crop sizes are rounded down to even.

Optional captions take source-timed words, such as the words from transcribe; they are moved with the cuts, and a word that straddles a cut is left out while the cut is kept. check_job returns the MP4, contactSheetUrl (one frame per cut) and cuts (where each range landed).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "video_url": "<video_url>",
      "segments": "<segments>"
    },
    "name": "cut_and_reframe_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
fpsNoDefault: source.
nameNoName for the result in the Library.
tagsNoTags for the result.
widthNoOutput width, even, 128-1920. Default: 1080.
heightNoOutput height, even, 128-1920. Default: 1920.
captionsNoOptional burned captions.
segmentsYesHalf-open source ranges in seconds, in playback order.
force_newNoAn identical request submitted in the last 10 minutes returns that job without charging again; true generates it again.
video_urlYesA video in your Library; import the file first.
skills_usedNoOptional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs.
audio_fade_msNoFade at each discontinuous audio cut, milliseconds. Default: 30. Above 100 is treated as 100.
budget_projectNoOptional budget project this generation's cost counts toward, for tracking spend per client or job. Pass its slug; an id or the exact display name also works. Create one with create_budget_project and find slugs with list_budget_projects. An unknown project never stops the generation: it runs without one, and the result warns how to add it with assign_to_budget_project.
normalize_audioNoLevel the whole output. Default: false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Well beyond the annotations, it discloses cost mechanics ('2 credits per started 30 output seconds'), asynchronous job behavior with permanent URL on completion, automatic refund on failure, and the 10-minute duplicate-request dedupe with the force_new escape hatch. It also surfaces subtle processing rules the caller cannot otherwise predict: half-open ranges playing in listed order, odd crop sizes rounded down to even, and caption words straddling a cut being dropped while the cut is kept. The annotation set (readOnly false, openWorld true) is consistent with this description of a non-destructive, credit-consuming render.

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?

Front-loaded with purpose, then cost/job semantics, then constraints, then framing and caption details — a sensible priority order. It is dense and long, but nearly every sentence carries a non-obvious rule (150 ms minimum, 300 output seconds, straddling words dropped) rather than filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 13-parameter nested-schema render tool with no output schema, it covers the essentials: cost, async polling via check_job, what check_job returns (MP4, contactSheetUrl, cuts), failure/refund handling, and the limiting constraints on ranges. Nothing an agent needs to invoke this correctly or interpret the result appears to be missing.

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 description coverage is 100%, so the schema already documents all 13 parameters and the baseline applies. The description does add genuine meaning on top: the three framing modes with concrete JSON examples, that crop must match the output aspect ratio with keyframe times relative to the range, that crop keyframes must not be combined with static x/y, and that caption words are source-timed rather than output-timed. That is real added semantics, but it stops short of covering the budget_project, skills_used, fps or audio_fade_ms parameters.

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?

Opens with a concrete verb and resource: 'Create one edited MP4 by cutting and reordering selected time ranges of a video in your Library', then adds reframing and audio preservation. It also explicitly delimits scope against neighbors with 'Does not choose highlights, transcribe, keep selectable subtitle streams or track faces', so an agent can separate it from trim_video, scale_video or transcribe without opening schemas.

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?

Gives clear preconditions ('The source must be a video in your Library; import it with upload_asset first') and routes the agent to check_job for completion, plus names transcribe as the source of caption words. It states what the tool does not do, which functions as exclusion guidance, but never names a specific alternative to use for those excluded tasks (e.g. a highlights tool).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.