Skip to main content
Glama

Add clips to project

add_clips

Create new clips on a project. One tool, four sources:

  • kind="blank": empty slide clips you'll populate with add_elements / generate_media. Pass clips: [{title?, duration?}, ...]. Note: create_project already creates clip 0; calling with N blank entries gives N+1 clips total.

  • kind="pptx": extract slides from an uploaded .ppt/.pptx. Pass mcp_upload_id (from upload_file), optional slide_indices. Each slide becomes a slide_clip with native text/image/shape elements pre-populated.

  • kind="video": cut clips from an uploaded video/audio. Pass mcp_upload_id and optionally mime_type (default video/mp4), title, voiceover_text, cuts: [{start_seconds, end_seconds, heading?}], auto_elements. Without cuts the whole upload becomes one clip. The clips land IN THE BACKGROUND (download → transcribe → insert), also inside run_script: the call returning does not mean they are on the timeline yet. Poll get_project until the clips appear. Do NOT call add_clips again for the same upload while you wait. A repeat call with the same arguments within 10 min is replayed (the first call's job and clips), never inserted twice; to place the upload twice use duplicate_clip. Different arguments (another cuts, after_clip_id) on an upload that has landed are served from a 24h cache, synchronously, and insert again. (To overlay a video ONTO an existing clip — picture-in-picture, b-roll, background loop — rather than insert it as its own clip, use add_elements(element_type='video') instead.)

    • Re-cut clips already on the timeline: pass source_start_clip_id, source_end_clip_id (a run of video clips from one recording, inclusive) and cuts instead of an upload. The run is replaced in place by one clip per cut; cut seconds are on the run's PLAYBACK timeline (the seconds get_clip durations add up to, 0 = start of the first clip), not the source recording's: after a voiceover retimed the footage, each edge is mapped back to the recording through its own clip's trim and timing, and a cut that lands on no footage is refused (no clip changes). Recording cut out between the clips counts back in, so a cut across it restores that footage (restored_gap_seconds).

  • kind="template": one clip from a clip template (find(type='clip_templates')). Pass template_id and text_overrides (strings for the template's text elements in document order; a missing or empty one keeps the placeholder — fill them with the user's words). after_clip_id is REQUIRED: ask the user where it goes, never guess. Insert only; a template whose aspect ratio differs from the project is refused (aspect_mismatch — pick another). The clip inherits the project's voice.

All variants accept after_clip_id to control insertion position; appends at end if omitted (except kind="template").

Concurrency: whole-project mutation (conflict domain: the entire project) — serialize. Do not run it in parallel with ANY other mutation on the same project_id, including element/voiceover edits; run them one at a time. (Mutations to different projects run in parallel freely.)

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": {
      "kind": "<kind>",
      "project_id": "<project_id>"
    },
    "name": "add_clips"
  }
}

Input Schema

NameRequiredDescriptionDefault
cutsNokind='video' only: per-clip cuts. Each entry becomes one inserted clip. Omit to insert the full upload as a single clip.
kindYesSource for the new clips: 'blank' | 'pptx' | 'video' | 'template'.
clipsNokind='blank' only: one entry per blank clip. Optionally set background_color/background + transition per clip at creation — no follow-up update_clips needed.
titleNokind='video' only: clip title (default 'Video'). Names a single whole-upload clip; with cuts it is the heading of any cut that has none (numbered when several).
mime_typeNokind='video' only: MIME type (default 'video/mp4'). Audio MIME types insert the file as a sequential clip with auto-TTS; for background music, use add_audio instead.
project_idYesProject (guide) ID.
template_idNokind='template' only: template_id from find(type='clip_templates').
after_clip_idNoInsert after this clip ID; appends at end if omitted. kind='video': '' inserts at the front.
auto_elementsNokind='video' only: when true, run auto-element detection (zooms, spotlights, blurs). Default false. Only meaningful on cache miss; cache hits clone the originating run's auto-elements.
mcp_upload_idNokind='pptx' or 'video': mcp_upload_id from upload_file, or a Clueso upload_id (or its S3 key).
slide_indicesNokind='pptx' only: 0-based slide indices to insert. Omit to insert all slides.
text_overridesNokind='template' only: text for the template's text elements, in document order.
voiceover_textNokind='video' only: post-AI voiceover script (saved as v2). Original audio is always retained as the base transcript. Bracketed emotion tags ([excited], [whispers]) are performed, not spoken; <pause:1.5s> is exact timed silence.
source_end_clip_idNokind='video' re-cut: last clip of the run (inclusive).
source_start_clip_idNokind='video' re-cut: first clip of the run to re-cut (inclusive).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / clips / items / properties / transition / properties / type / description
      Previous value: -"Plays at the END of this clip into the next (between clips 2 and 3 → set it on clip 2)."New value: +"Plays at the END of this clip into the next (between clips 2 and 3 → set it on clip 2). pushPull: the eased slide is concentrated mid-transition, so the visible push is only about 0.2 × duration (measured ~0.21); set duration about 5× the push you want to see."
    • changedInput schema / properties / title / description
      Previous value: -"kind='video' only: clip title (default 'Video')."New value: +"kind='video' only: clip title (default 'Video'). Names a single whole-upload clip; with cuts it is the heading of any cut that has none (numbered when several)."
  2. Changed4 schema fields changed
    • changedInput schema / properties / clips / items / properties / transition / properties / bezier / description
      Previous value: -"Custom easing of the transition, CSS cubic-bezier [x1, y1, x2, y2], e.g. [0.34, 1.56, 0.64, 1] for a slight bounce. Honoured by flip; omit for its default ease-in-out."New value: +"flip only: CSS cubic-bezier [x1, y1, x2, y2] (e.g. [0.34, 1.56, 0.64, 1] bounces); default ease-in-out."
    • changedInput schema / properties / clips / items / properties / transition / properties / color / description
      Previous value: -"Hex color, honoured by fadeToColor (default #000000), colorWipe (default #073cad), rainbowWipe (default #D43F8C) and flip (the backdrop behind the turning card, default #000000)."New value: +"Hex. fadeToColor (default #000000), colorWipe (#073cad), rainbowWipe (#D43F8C), flip (backdrop, #000000)."
    • changedInput schema / properties / clips / items / properties / transition / properties / direction / description
      Previous value: -"Direction, honoured only by some types: rainbowWipe and cornerWipe take topLeft/topRight/bottomLeft/bottomRight (default topRight); colorWipe takes left or right (default right); stack and pushPull take left/right/top/bottom (default right); flip takes horizontalLeft/horizontalCenter/horizontalRight/verticalTop/verticalCenter/verticalBottom (default horizontalCenter) — the axis it turns about (horizontal = left↔right, vertical = up↔down) and the line it turns on (an edge, or the middle for a card flip). Ignored by dissolve, circleWipe and fadeToColor."New value: +"rainbowWipe/cornerWipe: topLeft/topRight/bottomLeft/bottomRight (default topRight). colorWipe: left/right (default right). stack/pushPull: left/right/top/bottom (default right). flip (3D card turn): horizontalLeft/horizontalCenter/horizontalRight/verticalTop/verticalCenter/verticalBottom (default horizontalCenter; horizontal = turns left↔right, edge or centre line). Others ignore it."
    • changedInput schema / properties / clips / items / properties / transition / properties / type / description
      Previous value: -"Transition style. NOTE: a clip's transition plays at the END of that clip, into the next one — to put a transition between clips 2 and 3, set it on clip 2."New value: +"Plays at the END of this clip into the next (between clips 2 and 3 → set it on clip 2)."
  3. Changed9 schema fields changed
    • changedInput schema / properties / after_clip_id / description
      Previous value: -"Insert after this clip ID; appends at end if omitted."New value: +"Insert after this clip ID; appends at end if omitted. kind='video': '' inserts at the front."
    • changedInput schema / properties / clips / items / properties / background / description
      Previous value: -"Full background object from find(type='backgrounds'), set at creation."New value: +"Background set at creation: an object from find(type='backgrounds'), or { src, media_type?, padding?, border_radius?, shadow?, volume? } as in update_clips."
    • changedInput schema / properties / kind / description
      Previous value: -"Source for the new clips: 'blank' | 'pptx' | 'video'."New value: +"Source for the new clips: 'blank' | 'pptx' | 'video' | 'template'."
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "blank",
      -  "pptx",
      -  "video"
      -]New value: +[
      +  "blank",
      +  "pptx",
      +  "video",
      +  "template"
      +]
    • changedInput schema / properties / mcp_upload_id / description
      Previous value: -"kind='pptx' or 'video': mcp_upload_id from the upload_file tool."New value: +"kind='pptx' or 'video': mcp_upload_id from upload_file, or a Clueso upload_id (or its S3 key)."
    • addedInput schema / properties / source_end_clip_id
      Added value: +{
      +  "description": "kind='video' re-cut: last clip of the run (inclusive).",
      +  "type": "string"
      +}
    • addedInput schema / properties / source_start_clip_id
      Added value: +{
      +  "description": "kind='video' re-cut: first clip of the run to re-cut (inclusive).",
      +  "type": "string"
      +}
    • addedInput schema / properties / template_id
      Added value: +{
      +  "description": "kind='template' only: template_id from find(type='clip_templates').",
      +  "type": "string"
      +}
    • addedInput schema / properties / text_overrides
      Added value: +{
      +  "description": "kind='template' only: text for the template's text elements, in document order.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  4. Changed4 schema fields changed
    • addedInput schema / properties / clips / items / properties / transition / properties / bezier
      Added value: +{
      +  "description": "Custom easing of the transition, CSS cubic-bezier [x1, y1, x2, y2], e.g. [0.34, 1.56, 0.64, 1] for a slight bounce. Honoured by flip; omit for its default ease-in-out.",
      +  "items": {
      +    "type": "number"
      +  },
      +  "maxItems": 4,
      +  "minItems": 4,
      +  "type": "array"
      +}
    • changedInput schema / properties / clips / items / properties / transition / properties / color / description
      Previous value: -"Hex color, honoured by fadeToColor (default #000000), colorWipe (default #073cad) and rainbowWipe (default #D43F8C)."New value: +"Hex color, honoured by fadeToColor (default #000000), colorWipe (default #073cad), rainbowWipe (default #D43F8C) and flip (the backdrop behind the turning card, default #000000)."
    • changedInput schema / properties / clips / items / properties / transition / properties / direction / description
      Previous value: -"Direction, honoured only by some types: rainbowWipe and cornerWipe take topLeft/topRight/bottomLeft/bottomRight (default topRight); colorWipe takes left or right (default right); stack and pushPull take left/right/top/bottom (default right). Ignored by dissolve, circleWipe and fadeToColor."New value: +"Direction, honoured only by some types: rainbowWipe and cornerWipe take topLeft/topRight/bottomLeft/bottomRight (default topRight); colorWipe takes left or right (default right); stack and pushPull take left/right/top/bottom (default right); flip takes horizontalLeft/horizontalCenter/horizontalRight/verticalTop/verticalCenter/verticalBottom (default horizontalCenter) — the axis it turns about (horizontal = left↔right, vertical = up↔down) and the line it turns on (an edge, or the middle for a card flip). Ignored by dissolve, circleWipe and fadeToColor."
    • changedInput schema / properties / clips / items / properties / transition / properties / type / enum
      Previous value: -[
      -  "circleWipe",
      -  "rainbowWipe",
      -  "cornerWipe",
      -  "stack",
      -  "colorWipe",
      -  "dissolve",
      -  "pushPull",
      -  "fadeToColor"
      -]New value: +[
      +  "circleWipe",
      +  "rainbowWipe",
      +  "cornerWipe",
      +  "stack",
      +  "colorWipe",
      +  "dissolve",
      +  "pushPull",
      +  "fadeToColor",
      +  "flip"
      +]
  5. Changed1 schema field changed
    • changedInput schema / properties / voiceover_text / description
      Previous value: -"kind='video' only: post-AI voiceover script (saved as v2). Original audio is always retained as the base transcript."New value: +"kind='video' only: post-AI voiceover script (saved as v2). Original audio is always retained as the base transcript. Bracketed emotion tags ([excited], [whispers]) are performed, not spoken; <pause:1.5s> is exact timed silence."
  6. Changed4 schema fields changed
    • removedInput schema / properties / context
      Removed value: -{
      -  "description": "Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as \"a user\", \"the customer\", or \"an account\". Example: \"Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution.\"",
      -  "type": "string"
      -}
    • removedInput schema / properties / conversation_id
      Removed value: -{
      -  "description": "Echo the conversation_id from the server's previous response. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it.",
      -  "type": "string"
      -}
    • removedInput schema / properties / llm_model
      Removed value: -{
      -  "description": "The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. \"claude-opus-4-8\", \"gpt-5.2\"). Used for analytics only. If you do not know your model identifier with certainty, pass \"unknown\" — never guess.",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "kind",
      -  "project_id",
      -  "context",
      -  "llm_model"
      -]New value: +[
      +  "kind",
      +  "project_id"
      +]
  7. Changed4 schema fields changed
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as \"a user\", \"the customer\", or \"an account\". Example: \"Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution.\"",
      +  "type": "string"
      +}
    • addedInput schema / properties / conversation_id
      Added value: +{
      +  "description": "Echo the conversation_id from the server's previous response. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it.",
      +  "type": "string"
      +}
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. \"claude-opus-4-8\", \"gpt-5.2\"). Used for analytics only. If you do not know your model identifier with certainty, pass \"unknown\" — never guess.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "kind",
      -  "project_id"
      -]New value: +[
      +  "kind",
      +  "project_id",
      +  "context",
      +  "llm_model"
      +]
  8. Changed7 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / clips / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / clips / items / properties / background / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / clips / items / properties / transition / additionalProperties
      Removed value: -false
    • removedInput schema / properties / cuts / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / slide_indices / items / maximum
      Added value: +9007199254740991
  9. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes far beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=false) by disclosing async insertion for video (download → transcribe → insert), that the call returning does not mean clips are on the timeline, polling via get_project, a 10-minute replay/dedupe window, a 24-hour cache for different arguments, and refusal semantics (aspect_mismatch, cuts landing on no footage). It also states the concurrency contract - whole-project mutation that must be serialized against every other mutation on the same project_id - which no annotation conveys.

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?

Bullet-per-kind structure with front-loaded framing sentence and the most consequential warning (background insertion) placed in the relevant bullet rather than buried. It is dense and long, with some run-on parentheticals (the re-cut timeline explanation in particular), but for a 15-parameter, four-mode tool nearly every sentence carries operational information.

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?

Complete for a high-complexity mutation tool: all four modes, insertion positioning, async/polling behavior, idempotency and caching, refusal cases, and cross-tool escalation paths are covered, and no output schema exists so no return-value documentation is owed. An agent can invoke every variant correctly from this description alone.

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 schema already documents each parameter and the baseline would be 3. The description nonetheless adds real meaning the schema lacks: the N+1 clip note for kind='blank' given create_project already makes clip 0, the rule that cut seconds are on the run's PLAYBACK timeline rather than the source recording, and how voiceover retiming maps edges back through each clip's trim. It stops short of covering every parameter (e.g. auto_elements cache-hit behavior is partly left to the schema), so not a 5.

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?

Opens with a specific verb+resource ("Create new clips on a project") and immediately disambiguates the four sources via the kind enum, so the agent can tell this apart from add_elements, add_audio, and duplicate_clip without opening the schema. Sibling boundaries are stated explicitly, e.g. picture-in-picture goes to add_elements(element_type='video') and placing an upload twice goes to duplicate_clip.

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?

Gives per-mode when-to-use rules (blank for slides you populate later, pptx for uploaded decks, video for cutting uploads, template for clip templates) plus explicit alternatives: add_elements for overlays, add_audio for background music, find(type='clip_templates') to obtain template_id. It also states a hard usage constraint (kind='template' requires after_clip_id; ask the user, never guess) and a prohibition (do not re-call while a background job is running).

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.