Skip to main content
Glama

compose_video

Combine 2 to 20 video scenes into a single final clip server-side. Supports optional soundtrack, subtitles, and voiceover with automatic format normalization.

Instructions

Stitch 2–20 finished video scenes into ONE final clip server-side (scenes are normalized to a common frame/fps, concatenated, optional soundtrack replaces scene audio). Pass request_id of your COMPLETED video generations (or media.clipia.ai URLs). Returns request_id (cmp_*) — poll with wait_generation until COMPLETED, then output.video.url is the final mp4. Typical full-video flow: generate_scenario → generate_video per scene → compose_video.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scenesYesScenes in playback order. Each item: {request_id} of a COMPLETED video generation (or a previous compose), or {video_url} from media.clipia.ai. Optional duration_seconds trims (shorter) or freeze-extends (longer) the scene.
audio_urlNoOptional: soundtrack https URL on media.clipia.ai (alternative to audio_request_id).
normalizeNoRe-encode scenes to a common format before concat (keep true unless all scenes come from the same model with identical settings).
subtitlesNoOptional burned-in subtitles (styled, bottom-centered). Timings are relative to the FINAL stitched video.
resolutionNo1080p
aspect_ratioNoFrame of the final video; scenes are letterboxed to fit.9:16
voiceover_urlNoOptional: narration https URL on media.clipia.ai (alternative to voiceover_request_id).
audio_request_idNoOptional: a COMPLETED audio/music generation to use as the soundtrack (replaces scene audio, loudness-normalized, fade-out).
voiceover_request_idNoOptional: a COMPLETED audio generation used as narration — mixed OVER the soundtrack (music ducks to 25%) or over scene audio (ducks to 30%).
Behavior5/5

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

The description adds extensive behavioral details beyond annotations: scenes are normalized, optional soundtrack replaces scene audio, voiceover ducks audio, and return value is a request_id to poll. No contradiction with annotations (readOnlyHint=false, destructiveHint=false).

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?

The description is a single paragraph that is dense but well-structured, front-loading the main action and then detailing parameters. It could be slightly more scannable with bullet points, but it is still concise for the complexity (9 parameters).

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?

Given the absence of an output schema, the description explains the return value and polling workflow. It covers typical use cases and most parameters. It doesn't cover error handling or edge cases, but for a tool with openWorldHint=true, it is reasonably complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 89% schema coverage, the description still adds significant meaning: clarifies that scenes items can be request_id or video_url, duration_seconds trims/extend, normalize purpose, distinction between URL and request_id for audio/voiceover, and subtitles are burned-in. The schema already describes many parameters, but the description enriches understanding.

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 clearly states the action ('Stitch 2–20 finished video scenes into ONE final clip server-side'), the resource (video scenes), and the outcome. It distinguishes from siblings like generate_video (produces individual scenes) and wait_generation (polling). The typical flow is also mentioned.

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?

The description explains when to use (after completing video generations, pass request_ids or media URLs) and provides a typical workflow. It lacks an explicit when-not, but the context is sufficient for an AI to understand the tool's place in the pipeline.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/clipia-ai/clipia-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server