Skip to main content
Glama

extract_clips

Cuts the best moments from a long video into captioned vertical shorts of about 30 seconds using transcription, moment scoring, face tracking, and burned-in captions.

Instructions

Cut the best moments out of a long video (a local file or a YouTube or other video link) into captioned vertical shorts of about 30 seconds each (never over 60): it transcribes the speech with Whisper, scores the moments, crops to 9:16 with face tracking and burns in captions. Use it when the user already has a video; use generate_short to make one from a topic, or dub_video to change its language. Returns {job_id, status, message} at once and works in the background, several minutes or more for a long video and slower without an NVIDIA GPU; poll get_render_status until 'completed' (its 'outputs' lists the clip paths) or 'failed'. Side effects: a linked video is downloaded; a local source is only read, never changed; clips are written under sessions/ in the ShortsFlow folder; nothing is uploaded or posted. Works without any API key; with an AI key the transcript goes to that provider for scoring and titles.

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": {
      "source_video": "<source_video>"
    },
    "name": "extract_clips"
  }
}

Input Schema

NameRequiredDescriptionDefault
layoutNoFraming: single = face-tracked crop; split = two speakers stacked; active = cut to whoever is talking (stacked when unsure), best for podcasts and interviews; fit = the whole picture centred over a blurred copy of itself, nothing cropped off the sides (screen recordings, gameplay).single
tightenNoCut out silences and dead air inside each short.
languageNoLanguage spoken in the video as a code (en, hi, es, fr, ...), or 'auto' to detect it.en
auto_editNoEdit like an editor: cuts, zooms, cutaways, teaser opening, colour and sound effects for this kind of video. Left out, no such edit is made.
clip_countNoHow many shorts to cut out, 1 or more. Fewer come back when the video has fewer good moments.
smart_cropNoFollow the speaker's face when cropping the wide video to vertical.
source_videoYesThe video to clip: an http(s) link (YouTube and other sites) or the path of an existing local file (absolute, or relative to the ShortsFlow folder). Required.
use_remotionNoAnimated captions (needs Node.js). False renders without animated captions.
caption_styleNoAnimated caption look (needs use_remotion): HORMOZI = bold yellow single words, GLOW_BOX = words in boxes with a pink highlight, BOUNCE = bouncy gold single words, MINIMAL = clean dark boxes, KARAOKE = colour sweep along the line, NEON = glow, BAR = subtitle bar, MARKER = highlighter sweep, SOFT = words fading in, WORDCUT = words cut in, NEGATIVE = muted keyword, HANDWRITTEN = script with an underline, SIMPLE = tall plain capitals, TYPEWRITER = typed letter by letter, AUTO/RANDOM = pick for me.HORMOZI
edit_strengthNoOnly with auto_edit: how much of the edit shows (subtle keeps it quiet, hyped uses everything).medium

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.9.5
    • changedInput schema / properties / auto_edit / description
      Previous value: -"Edit like an editor: cuts, zooms, cutaways, teaser opening, colour and sound effects for this kind of video."New value: +"Edit like an editor: cuts, zooms, cutaways, teaser opening, colour and sound effects for this kind of video. Left out, no such edit is made."
    • changedInput schema / properties / caption_style / description
      Previous value: -"Animated caption look (needs use_remotion): HORMOZI = bold yellow single words, GLOW_BOX = words in boxes with a pink highlight, BOUNCE = bouncy gold single words, MINIMAL = clean dark boxes, AUTO/RANDOM = pick for me."New value: +"Animated caption look (needs use_remotion): HORMOZI = bold yellow single words, GLOW_BOX = words in boxes with a pink highlight, BOUNCE = bouncy gold single words, MINIMAL = clean dark boxes, KARAOKE = colour sweep along the line, NEON = glow, BAR = subtitle bar, MARKER = highlighter sweep, SOFT = words fading in, WORDCUT = words cut in, NEGATIVE = muted keyword, HANDWRITTEN = script with an underline, SIMPLE = tall plain capitals, TYPEWRITER = typed letter by letter, AUTO/RANDOM = pick for me."
    • changedInput schema / properties / caption_style / enum
      Previous value: -[
      -  "HORMOZI",
      -  "GLOW_BOX",
      -  "BOUNCE",
      -  "MINIMAL",
      -  "AUTO",
      -  "RANDOM"
      -]New value: +[
      +  "HORMOZI",
      +  "GLOW_BOX",
      +  "BOUNCE",
      +  "MINIMAL",
      +  "KARAOKE",
      +  "NEON",
      +  "BAR",
      +  "MARKER",
      +  "SOFT",
      +  "WORDCUT",
      +  "NEGATIVE",
      +  "HANDWRITTEN",
      +  "SIMPLE",
      +  "TYPEWRITER",
      +  "AUTO",
      +  "RANDOM"
      +]
    • changedInput schema / properties / clip_count / description
      Previous value: -"How many shorts to cut out."New value: +"How many shorts to cut out, 1 or more. Fewer come back when the video has fewer good moments."
    • changedInput schema / properties / edit_strength / description
      Previous value: -"With auto_edit: how much of the edit shows (subtle keeps it quiet, hyped uses everything)."New value: +"Only with auto_edit: how much of the edit shows (subtle keeps it quiet, hyped uses everything)."
    • changedInput schema / properties / language / description
      Previous value: -"Language spoken in the video (en, hi, es, fr, ...; 'auto' detects it)."New value: +"Language spoken in the video as a code (en, hi, es, fr, ...), or 'auto' to detect it."
    • changedInput schema / properties / source_video / description
      Previous value: -"Local video file path or a YouTube/other video URL to clip. Required."New value: +"The video to clip: an http(s) link (YouTube and other sites) or the path of an existing local file (absolute, or relative to the ShortsFlow folder). Required."
    • addedInput schema / properties / source_video / minLength
      Added value: +1
  2. Changed5 schema fields changedv0.5.0
    • addedInput schema / properties / auto_edit
      Added value: +{
      +  "description": "Edit like an editor: cuts, zooms, cutaways, teaser opening, colour and sound effects for this kind of video.",
      +  "enum": [
      +    "podcast",
      +    "hype",
      +    "educational",
      +    "vlog"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / edit_strength
      Added value: +{
      +  "default": "medium",
      +  "description": "With auto_edit: how much of the edit shows (subtle keeps it quiet, hyped uses everything).",
      +  "enum": [
      +    "subtle",
      +    "medium",
      +    "hyped"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / language
      Added value: +{
      +  "default": "en",
      +  "description": "Language spoken in the video (en, hi, es, fr, ...; 'auto' detects it).",
      +  "type": "string"
      +}
    • changedInput schema / properties / layout / description
      Previous value: -"Framing: single = face-tracked crop; split = two speakers stacked; active = cut to whoever is talking (stacked when unsure), best for podcasts and interviews."New value: +"Framing: single = face-tracked crop; split = two speakers stacked; active = cut to whoever is talking (stacked when unsure), best for podcasts and interviews; fit = the whole picture centred over a blurred copy of itself, nothing cropped off the sides (screen recordings, gameplay)."
    • changedInput schema / properties / layout / enum
      Previous value: -[
      -  "single",
      -  "split",
      -  "active"
      -]New value: +[
      +  "single",
      +  "split",
      +  "active",
      +  "fit"
      +]
  3. Changed1 schema field changedv0.4.1
    • removedInput schema / properties / clip_count / maximum
      Removed value: -15
  4. Changed10 schema fields changedv0.1.1
    • addedInput schema / properties / caption_style / description
      Added value: +"Animated caption look (needs use_remotion): HORMOZI = bold yellow single words, GLOW_BOX = words in boxes with a pink highlight, BOUNCE = bouncy gold single words, MINIMAL = clean dark boxes, AUTO/RANDOM = pick for me."
    • addedInput schema / properties / caption_style / enum
      Added value: +[
      +  "HORMOZI",
      +  "GLOW_BOX",
      +  "BOUNCE",
      +  "MINIMAL",
      +  "AUTO",
      +  "RANDOM"
      +]
    • changedInput schema / properties / clip_count / description
      Previous value: -"Number of viral shorts to extract"New value: +"How many shorts to cut out."
    • addedInput schema / properties / clip_count / maximum
      Added value: +15
    • addedInput schema / properties / clip_count / minimum
      Added value: +1
    • changedInput schema / properties / layout / description
      Previous value: -"single: face-tracked crop; split: two speakers stacked; active: cut to whoever is talking (stacked when unsure) for podcasts/interviews"New value: +"Framing: single = face-tracked crop; split = two speakers stacked; active = cut to whoever is talking (stacked when unsure), best for podcasts and interviews."
    • changedInput schema / properties / smart_crop / description
      Previous value: -"Enable AI face and subject tracking crop for 9:16 vertical video"New value: +"Follow the speaker's face when cropping the wide video to vertical."
    • changedInput schema / properties / source_video / description
      Previous value: -"YouTube video URL or local video file path"New value: +"Local video file path or a YouTube/other video URL to clip. Required."
    • changedInput schema / properties / tighten / description
      Previous value: -"Automatically trim silence gaps for punchy high retention"New value: +"Cut out silences and dead air inside each short."
    • addedInput schema / properties / use_remotion / description
      Added value: +"Animated captions (needs Node.js). False renders without animated captions."
  5. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only supply the generic readOnly/openWorld/destructive/idempotent flags; the description adds real operating context beyond them — background execution with multi-minute latency (slower without an NVIDIA GPU), the immediate async return, explicit side effects (linked video downloaded, local source only read, clips written under sessions/, nothing uploaded or posted), and the API-key dependency for transcript routing. That is exactly the incremental disclosure the annotations cannot carry.

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?

Purpose is front-loaded and every sentence carries distinct information — scope, alternatives, return contract, timing, side effects, key requirements — with no filler. It is a single dense paragraph with long compound sentences, so it is efficient but slightly harder to scan than a segmented form.

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 10-parameter, long-running, side-effecting job tool with no output schema, the description supplies everything an agent needs: the return shape ({job_id, status, message}), the polling tool and terminal states, expected latency, and the full side-effect inventory. Nothing material is left to inference.

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 every parameter, enum value, and default is already documented in the schema with more precision than the prose. The description only gestures at parameter effects indirectly (face-tracked cropping, burned captions) and adds no syntax, format, or interaction detail the schema lacks. Baseline 3 is the correct ceiling here.

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?

"Cut the best moments out of a long video ... into captioned vertical shorts of about 30 seconds each" gives a specific verb, resource, and output shape, and follows with the internal pipeline (Whisper transcription, scoring, 9:16 face-tracked crop, burned captions). It also names the adjacent tools it is not, so an agent can separate it from generate_short and dub_video without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Use it when the user already has a video" is an explicit selection condition, immediately paired with two named alternatives and their discriminating conditions (generate_short for topic-based creation, dub_video for language change). It also prescribes the follow-up workflow: poll get_render_status until 'completed' or 'failed', naming the relevant field ('outputs').

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