Skip to main content
Glama

Merge a clip into a UGC ad

merge_ad

Combine a completed clip with an app screen recording and hook text overlay to create the final UGC ad. Upload files first, then poll the ad's status until completion.

Instructions

Merge a completed clip with an app screen recording and a hook text overlay (plus optional background music) into the final UGC ad. Same as clipugc videos merge <clipId>. The clip must have status "completed" (check with get_video). Merging is free at the time of writing; the live cost is the "merge" entry of get_credits. Files are uploaded first. Returns merged_video_id: the AD id, which is a different id space from the clip id. The merge renders in the background. Poll get_video with {"id": , "kind": "ad"} every 5 to 10 seconds until status is "completed" or "failed", then call download_video with kind "ad".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hookYesHook text overlaid on the video, max 150 chars (same as --hook).
musicNoLocal path of background music, mp3/wav/m4a (same as --music).
videoYesClip (character video) id, as returned by other tools (numbers are fine as strings).
app_videoYesLocal path of the app screen recording, mp4/mov (same as --app-video).

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

The description goes far beyond the annotations: it discloses that files are uploaded first, the merge renders in the background, the returned id is in a different id space, and the caller must poll get_video with a specific kind parameter. It also explains the status polling loop and cost lookup. No contradiction with the annotations is present.

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?

Every sentence earns its place and the most important information is front-loaded: the operation, inputs, and output. The description is dense but readable, and the polling instructions are specific without being padded. It is a model of efficient tool documentation.

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?

With no output schema, the description fully explains the return value (merged_video_id), the id-space distinction, the required polling behavior, and the follow-up download call. It also covers preconditions, cost, and asynchronous rendering. Nothing essential for a caller to use the tool correctly is 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?

The schema already describes all four parameters at 100% coverage, so the baseline is 3. The description adds important extra meaning: it clarifies that 'video' is a clip id whose return id is an AD id in a different namespace, and that local file parameters imply an upload step. This exceeds the schema's basic descriptions without being exhaustive.

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 operation: merging a completed clip, app screen recording, hook text, and optional music into a final UGC ad. It names the exact inputs and output, and the CLI equivalence ('clipugc videos merge') removes ambiguity. This also differentiates it from sibling creation tools like create_clip or create_motion_clip.

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 provides clear context for when the tool is appropriate: the clip must have status 'completed', costs can be checked via get_credits, and the result is an ad id rather than a clip id. It does not explicitly state when not to use it or name alternative tools, but the prerequisites and workflow give strong practical guidance.

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

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/clipugc/ClipUGC-CLI'

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