Skip to main content
Glama

Clip a YouTube video

clip_youtube_video

Cut one moment (3 to 120 seconds) out of a public YouTube video and store it in this Masonry workspace. Returns the clip and a media_id. The cut lands on pauses in the speech, and a 9:16 clip follows the speaker. For several moments call this once per moment. To finish a short, pass the media_id to combine_clips as a clip's job_id with captions from clips. Takes up to a minute. Free: costs no credits. Meant for videos the user has the right to reuse.

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

Input Schema

NameRequiredDescriptionDefault
endYesWhere the clip ends. A clip is 3 to 120 seconds long.
urlYesLink to one YouTube video.
startYesWhere the clip begins, in seconds or as a timestamp such as 1:23, taken from read_youtube_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.
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.5/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true, idempotentHint=false): it discloses the return value ("Returns the clip and a media_id"), latency ("Takes up to a minute"), zero credit cost, that cuts snap to speech pauses, and that a 9:16 clip follows the speaker. It also flags the non-idempotent shape implicitly by telling the agent to call once per moment rather than assuming a single call covers many clips.

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?

Front-loaded with the action, then scope, then return value, then follow-on routing, latency, cost, and rights. Every sentence is short and carries distinct information; nothing restates the name or title.

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?

With no output schema, the description correctly spends a clause on the return shape (clip plus media_id). Combined with latency, cost, rights, and downstream chaining guidance, an agent has everything needed to invoke this correctly in a multi-step short-form workflow.

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 aspect and framing values are already fully enumerated and explained in the schema; the description adds little parameter-level meaning beyond reinforcing the 3-120 second window and the speaker-following default. Baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 ... out of a public YouTube video and store it in this Masonry workspace") plus duration bounds of 3-120 seconds, so the operation and its limits are unmistakable. It does not, however, distinguish itself from the sibling clip_video, leaving ambiguous which one applies to uploaded vs. YouTube-source media.

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?

Explicitly routes the agent: one call per moment when several moments are wanted, timestamp sourced from read_youtube_video, and media_id handed to combine_clips as a job_id with captions from clips to finish a short. It also states the legitimate-use precondition ("Meant for videos the user has the right to reuse") and the public-video constraint, so both when and under what conditions are covered.

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