Skip to main content
Glama

Stitch Clips

stitch_clips

Stitch 1 to 25 existing images and video clips, in order, into one video. This edits media you already have and does not generate footage. Costs 2 credits for the first clip plus 1 per additional clip. Returns a job immediately; check_job returns the permanent URL once it is completed. A failed job is refunded automatically.

Each image needs duration_seconds; each video plays in full with its own audio unless include_audio=false. Optional audio {url, start_delay_seconds} is mixed over the clips' audio. The output lasts until the later of the pictures and the delayed audio; if the audio runs longer, the last frame holds. The first video sets the output size; with images only, the first image does, capped near 1080p. content_fit=contain keeps everything with black bars; cover center-crops to fill.

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": {
      "clips": "<clips>"
    },
    "name": "stitch_clips"
  }
}

Input Schema

NameRequiredDescriptionDefault
audioNoOptional audio to mix over the clips.
clipsYesClips in playback order.
force_newNoAn identical request submitted in the last 10 minutes returns that job without charging again; true generates it again.
content_fitNoDefault: contain.
skills_usedNoOptional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs.
budget_projectNoOptional budget project this generation's cost counts toward, for tracking spend per client or job. Pass its slug; an id or the exact display name also works. Create one with create_budget_project and find slugs with list_budget_projects. An unknown project never stops the generation: it runs without one, and the result warns how to add it with assign_to_budget_project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already flag this as non-read-only, non-destructive, non-idempotent and open-world, and the description meaningfully adds to that: exact credit pricing (2 + 1 per extra clip), immediate job-return semantics with permanent URL via check_job, automatic refund on failure, and deterministic sizing rules (first video or first image sets output size, capped near 1080p). That is real behavioral context beyond the annotations, though return payload shape and failure modes other than refund are not described.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and cost, which is good, but the second paragraph is a dense run-on of many independent rules (duration, audio, duration-of-output, sizing, content_fit) with no formatting to separate them. Each fact earns its place, yet the packing makes it harder to scan than it needs to be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is an integer score for the completeness dimension relative to a 6-parameter nested-clip tool with no output schema; the description covers cost, async job semantics, sizing, audio mixing, and fit modes, and delegates force_new and budget_project correctly to their rich schema descriptions. Nothing an agent needs in order to invoke it correctly appears to be missing.

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 baseline is 3, but the prose adds genuine meaning: it explains that images need duration_seconds while videos play in full with their own audio unless include_audio=false, that optional audio is mixed over clip audio with start_delay_seconds affecting total length, and it defines the content_fit enum behaviorally (contain keeps everything with black bars, cover center-crops to fill) rather than just restating the default. force_new and budget_project behavior are left to the schema.

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 with scope bounds ("Stitch 1 to 25 existing images and video clips, in order, into one video") and immediately disambiguates from generation tools: "This edits media you already have and does not generate footage." An agent can distinguish this from generate_video or assemble_film 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Clear positive guidance on when to use it (you already have clips and want them combined) plus an explicit exclusion of generation. It also points to check_job as the polling follow-up. However, it never mentions the sibling add_audio_to_video as an alternative path for audio handling, nor when a single-clip or other assembly route would be preferable.

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.