Skip to main content
Glama

Clip a video

clip_video

Cut one moment (3 to 120 seconds) out of a video already in this workspace (footage brought in with add_media, a generated clip or a finished edit) and store it as a new media_id. A 9:16 clip of a wide video follows the speaker shot by shot, puts two speakers in a split screen, and keeps a wide shot whole. Use it to turn a long recording into vertical shorts: transcribe_media for the moments, clip_video once per moment, then combine_clips with captions from clips. Takes up to a minute. Free: costs no credits. For a YouTube link use clip_youtube_video.

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": {
      "job_id": "<job_id>",
      "start": "<start>",
      "end": "<end>"
    },
    "name": "clip_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYesWhere the clip ends. A clip is 3 to 120 seconds long.
startYesWhere the clip begins, in seconds or as a timestamp such as 1:23, taken from transcribe_media or inspect_video.
aspectNoShape of the clip: 9:16 (default, for Shorts, Reels and TikTok), 4:5, 1:1, 16:9, or source to keep the video's own frame.
job_idYesThe video to cut from: a media_id from add_media, job_id of a finished video generation, or a render job_id (render:...).
framingNoHow a wide video fills a tall clip: auto (default) follows the speaker shot by shot, center crops the middle, fit keeps the whole frame, stream (gaming or live streams with the streamer on camera) puts the gameplay on the top 60% and the streamer's face on the bottom 40%.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the bar is lower. The description still adds real value with latency ("takes up to a minute") and cost ("Free: costs no credits") plus the fact that output is a new media_id, implying the source is untouched. It stops short of covering failure modes, e.g. what happens if start/end fall outside the source duration or the clip exceeds 120s.

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 the core action and duration constraint, then format behaviour, then the workflow. Every sentence carries information, though the parenthetical listing sources for job_id repeats what the job_id schema description already says.

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?

No output schema exists, yet the description tells the agent what it gets back (a new media_id). Combined with the duration limits, aspect/framing behaviour, cost, and latency, an agent has everything needed to call this correctly.

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%, so the schema already documents all five parameters including aspect and framing options, making 3 the baseline. The description adds modest meaning beyond it — that a 9:16 clip of a wide video follows the speaker shot by shot, split-screens two speakers, and otherwise keeps a wide shot whole — but does not explain job_id formats or timestamp syntax further.

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 ("Cut one moment (3 to 120 seconds) out of a video already in this workspace") plus the outcome ("store it as a new media_id"). It also explicitly distinguishes itself from the closest sibling by naming clip_youtube_video for YouTube links.

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?

Provides an explicit when-to-use scenario ("turn a long recording into vertical shorts") and an ordered pipeline: transcribe_media for moments, clip_video once per moment, then combine_clips with captions. It also names the exclusion — YouTube links go to clip_youtube_video.

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.

Resources