Skip to main content
Glama

Create a subclip

create_subclip

Creates a subclip from a source clip using only the portion between start and end seconds, placing it in a specified bin or beside its source without copying media.

Instructions

Create a subclip: a new project item that uses only the part of a clip between start and end (seconds from the beginning of the source media). The item_* arguments name the source clip; a bin or a sequence fails with BAD_ARGS. The subclip is put in the bin given by bin_*, or next to its source when no bin is given; the media file is not copied. An end beyond the media fails with BAD_ARGS. Returns the new item with its start, end and duration in seconds and the source item id.

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

Input Schema

NameRequiredDescriptionDefault
endYesEnd of the subclip in the source media, in seconds from the media start. Must be greater than start and within the media.
nameYesName of the subclip.
startYesStart of the subclip in the source media, in seconds from the media start.
bin_idNoStable id of the bin to put the subclip in. Omit all bin_* arguments to put it next to its source.
item_idNoStable project item id (from list_project_items). Preferred.
bin_nameNoBin name; the first match is used.
bin_pathNoBin path, e.g. "Selects/Day 1".
item_nameNoItem name; the first match in the project is used.
item_pathNoPath in the Project panel, e.g. "Footage/Day 1/clip.mp4".
take_audioNoInclude the audio of the source. Default true.
take_videoNoInclude the video of the source. Default true. take_video and take_audio cannot both be false.
hard_boundariesNotrue = the subclip cannot be trimmed beyond start/end on a timeline. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare this as a non-read-only, non-destructive, non-idempotent creation. The description adds real behavioral context beyond them: the media file is not copied, placement defaults to next to the source when no bin_* is given, and specific failure modes (BAD_ARGS) are enumerated. It stops short of saying what happens on a name collision or repeated invocation, which matters given idempotentHint=false.

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?

Four dense sentences, front-loaded with the definition of the created object, then source identification, then placement default, then error/return behavior. No filler or restatement of the name and title, and the em-dash definition of start/end earns its place.

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?

For a 12-parameter creation tool with no output schema, the description covers the returned fields (start, end, duration, source item id), the default placement, and the key error cases, which is close to complete. The remaining uncovered semantics — take_video/take_audio interaction and hard_boundaries — are fully documented in the schema, so the gap is minor.

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%, so the baseline is 3, but the description adds meaning the schema does not: the item_* family collectively identifies the source and the bin_* family collectively identifies the destination, with an explicit omission rule for the bin_* group. It also constrains item_* to clips rather than bins or sequences, which is a semantic constraint not visible per-parameter.

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 gives a specific verb and resource and then defines the resource inline: a new project item that uses only the part of a clip between start and end. It also pins down the time unit (seconds from the beginning of the source media), so the agent knows exactly what object is produced and how start/end are interpreted without opening the schema.

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?

Usage context is explicit about preconditions: the item_* arguments must name a source clip, and a bin or sequence fails with BAD_ARGS, plus an end beyond the media also fails. That is clear when-to-use framing, but no sibling alternative (e.g. a subsequence or rough-cut tool) is named as the counterpart for cases where a subclip is the wrong choice.

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

Deploy Server

Other Tools