Skip to main content
Glama

Create clip

create_clip

Creates a clip from a source video time range using its transcript; choose exact bounds or let AI select the best moment, then poll the returned clip until ready.

Instructions

Add a clip from a time range of the source (needs a transcript). mode exact keeps your bounds (3 s-10 min); mode ai lets the model pick the best moment inside them (≥8 s). Hosted Free allows one; the refusal names the upgrade. Returns the new clip summary { id, status: "preparing", queued: "prepare", hint }; preparation (title, hook, scores) is queued and the render follows by itself (about a minute), so poll get_clip until done. To change an existing clip use update_clip instead.

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": {
      "projectId": "<projectId>",
      "startSec": "<startSec>",
      "endSec": "<endSec>"
    },
    "name": "create_clip"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoexact = these bounds (default); ai = best moment inside themexact
endSecYesRange end, seconds
startSecYesRange start, seconds from the start of the source video
projectIdYesProject id (from list_projects, search_clips or create_project)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.51.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed4 schema fields changedv0.7.0
    • addedInput schema / properties / endSec / description
      Added value: +"Range end, seconds"
    • addedInput schema / properties / mode / description
      Added value: +"exact = these bounds (default); ai = best moment inside them"
    • addedInput schema / properties / projectId / description
      Added value: +"Project id (from list_projects, search_clips or create_project)"
    • addedInput schema / properties / startSec / description
      Added value: +"Range start, seconds from the start of the source video"
  3. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Goes well past the single destructiveHint=false annotation: it discloses the quota, that the refusal message names the upgrade, the exact return shape, that preparation is queued asynchronously, the ~1 minute render window, and the required polling of get_clip. It stops short of stating whether the clip can fail preparation or what status values follow "preparing".

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?

One dense paragraph, front-loaded with purpose, then mode rules, then quota, then return and follow-up action. Every clause carries distinct information; nothing is redundant with the schema or annotations.

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 no output schema, the description compensates by naming the returned fields and the asynchronous prepare-then-render flow. Only the terminal states after preparation and any failure modes are left implicit, which is a minor gap for a 4-parameter creation tool.

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 real meaning the schema does not: the duration semantics of the bounds under each mode and the minimum-length rules. It doesn't clarify units or behavior of startSec when mode=ai beyond the range framing.

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 ("Add a clip from a time range of the source") plus the prerequisite ("needs a transcript"), which an agent cannot infer from the name alone. It also distinguishes itself from the mutating sibling by pointing to update_clip for existing clips.

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: creation here, modification via update_clip. It also gives selection criteria between the two modes with concrete constraints (exact keeps bounds, 3 s-10 min; ai picks best moment, ≥8 s) and states the hosted Free quota of one clip.

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