Skip to main content
Glama

Clip a time range

clip_range
Idempotent

Use this when the user wants ONE clip of an exact stretch of a video: "clip 1:02:10 to 1:03:00" (3730 to 3780 seconds), or a match from get_moments. Makes one captioned vertical clip of exactly that stretch. Not for: RipClip picking highlights (find_clips) or searching a topic (find_moments). Spends Horizon Units for just those minutes: call estimate_hu with the same range as range_start / range_end first, show the number and pass the approved amount as max_hu (a failed job gives it back). Returns job_id; job_status waits for it.

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": {
      "project_id": "<project_id>",
      "start_seconds": "<start_seconds>",
      "end_seconds": "<end_seconds>",
      "max_hu": "<max_hu>"
    },
    "name": "clip_range"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_huYesHorizon Units the user approved, from estimate_hu; a higher cost is refused.
project_idYesId of the video, from list_projects.
end_secondsYesClip end in seconds from the video start. The clip must be 3 seconds to 5 minutes long.
request_keyNoOptional unique string; repeating it returns the same job.
start_secondsYesClip start in seconds from the video start, e.g. 3730 for 1:02:10.
clipping_presetNoPreset id or name from list_clipping_presets; empty is the default, "none" the standard look.

Output Schema

NameRequiredDescriptionDefault
job_idYes
statusYes
status_urlYes
reserved_huYes
results_urlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / clipping_preset / default
      Removed value: -""
    • removedInput schema / properties / request_key / default
      Removed value: -""
  2. Changed13 schema fields changed
    • addedInput schema / properties / clipping_preset / description
      Added value: +"Preset id or name from list_clipping_presets; empty is the default, \"none\" the standard look."
    • removedInput schema / properties / clipping_preset / title
      Removed value: -"Clipping Preset"
    • addedInput schema / properties / end_seconds / description
      Added value: +"Clip end in seconds from the video start. The clip must be 3 seconds to 5 minutes long."
    • removedInput schema / properties / end_seconds / title
      Removed value: -"End Seconds"
    • addedInput schema / properties / max_hu / description
      Added value: +"Horizon Units the user approved, from estimate_hu; a higher cost is refused."
    • removedInput schema / properties / max_hu / title
      Removed value: -"Max Hu"
    • addedInput schema / properties / project_id / description
      Added value: +"Id of the video, from list_projects."
    • removedInput schema / properties / project_id / title
      Removed value: -"Project Id"
    • addedInput schema / properties / request_key / description
      Added value: +"Optional unique string; repeating it returns the same job."
    • removedInput schema / properties / request_key / title
      Removed value: -"Request Key"
    • addedInput schema / properties / start_seconds / description
      Added value: +"Clip start in seconds from the video start, e.g. 3730 for 1:02:10."
    • removedInput schema / properties / start_seconds / title
      Removed value: -"Start Seconds"
    • removedInput schema / title
      Removed value: -"clip_rangeArguments"
  3. Changed2 schema fields changed
    • addedInput schema / properties / request_key / default
      Added value: +""
    • changedInput schema / required
      Previous value: -[
      -  "project_id",
      -  "start_seconds",
      -  "end_seconds",
      -  "max_hu",
      -  "request_key"
      -]New value: +[
      +  "project_id",
      +  "start_seconds",
      +  "end_seconds",
      +  "max_hu"
      +]
  4. First observed

TDQS

A4.4/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 idempotentHint=true, but the description adds real context beyond them: the operation spends Horizon Units for just those minutes, a failed job refunds them, and a higher cost than max_hu is refused. It also names the downstream step (returns job_id; job_status waits for it) and the output form (one captioned vertical clip).

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 use case, then a compact 'Not for:' exclusion clause, then the cost/workflow chain, ending with the return value. Sentences are dense but every clause carries routing, cost, or workflow information; nothing is filler.

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?

With 6 parameters, 100% schema coverage, an output schema and annotations, the description covers the selection criteria, the cost-approval chain, the refund behavior and the follow-up tool. Only minor edges (e.g. what happens when the range violates the 3s-5min limit, which the schema notes) are left implicit.

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% and each parameter is described there, so the baseline is 3. The description still adds procedural meaning the schema cannot: max_hu must come from estimate_hu with the same range, and the approved amount is the ceiling rather than a guess. The link between the range passed to estimate_hu and start/end_seconds is the useful extra.

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?

The description opens with a specific verb+resource+scope: 'ONE clip of an exact stretch of a video', with a worked example (1:02:10 to 1:03:00 = 3730-3780s). It explicitly distinguishes itself from find_clips ('RipClip picking highlights') and find_moments ('searching a topic'), so an agent can route 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?

It states both when to use it (an exact stretch the user named, or a match from get_moments) and when not to (find_clips for highlights, find_moments for topic search). It also gives the required pre-step workflow: call estimate_hu with the same range, show the number, pass the approved amount as max_hu.

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