Skip to main content
Glama

Generate a clip

generate_video

Create a paid silent video clip from text, first/last frames, or reference images; preview the credit price first, then poll the run until the clip is ready.

Instructions

Generate one silent clip (paid): a NEW run of skill generate_video, charged unit_credits per second of duration_s once it is delivered. Modes: text; first_frame (first_frame, optional last_frame, of the requested aspect ratio within 2%); reference (1 to 4 references). Call quote_video first and show the user the price. Poll the run with get_run; once it succeeded, generation.url is the clip. A reference is {upload_id, rights_confirmed: true} for a picture from upload_image or create_upload (rights_confirmed states you may use the people and works in it), {run_id} of a succeeded generate_image run of this account until its reusable_until, or {asset_id} of a picture asset from create_asset, whose rights were confirmed when it was made. A generation that fails is charged nothing. An identical request returns the same run it started before, so a call repeated after a lost answer starts nothing new; to make another one with the same request on purpose, pass attempt 2. While generations are closed it answers generations_disabled or generations_marking_pending and charges nothing. Price: 3 to 90 credits per second of clip, by model and size. Quote first with quote_video; list_prices names every price.

Input Schema

NameRequiredDescriptionDefault
modeYes
modelYes
cameraNo
promptYes
attemptNo
duration_sYes
last_frameNo
referencesNo
resolutionYes
first_frameNo
aspect_ratioYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.34.0
    • addedInput schema / properties / camera
      Added value: +{
      +  "enum": [
      +    "static",
      +    "push_in",
      +    "pull_back",
      +    "pan"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / model / enum
      Previous value: -[
      -  "seedance-2.0",
      -  "seedance-2.0-mini",
      -  "seedance-2.0-fast",
      -  "seedance-2.5"
      -]New value: +[
      +  "seedance-2.0",
      +  "seedance-2.0-mini",
      +  "seedance-2.0-fast",
      +  "seedance-2.5",
      +  "kling-3.0",
      +  "gemini-omni-flash-1.1"
      +]
    • changedInput schema / properties / resolution / enum
      Previous value: -[
      -  "480p",
      -  "720p",
      -  "1080p"
      -]New value: +[
      +  "360p",
      +  "480p",
      +  "720p",
      +  "1080p"
      +]
  2. Addedv0.33.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false/destructiveHint=false, and the description adds substantial context beyond that: per-second credit charging, failures charged nothing, idempotent replay of identical requests, and the generations_disabled/generations_marking_pending refusal states. The only gap is that it doesn't discuss async timing expectations beyond "poll", but pricing and failure semantics are unusually well disclosed for a write tool.

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?

Purpose and cost are front-loaded in the first sentence, then modes, workflow and reference formats follow in logical order. It is dense but nearly every clause carries operational meaning; the only slack is the restatement of the price range/quote guidance at the end.

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 11 parameters, no output schema, and nested reference objects, the description supplies the workflow (quote, generate, poll), the success path ("generation.url is the clip"), the failure path (no charge) and the dedup rule. Missing only guidance on choosing model/resolution/camera, which an agent would otherwise have to infer from list_prices and list_generation_models.

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 description coverage is 0%, so the description carries the burden, and it explains the hardest parts: the three accepted reference shapes with rights_confirmed semantics, reusable_until for run_id references, and the 2% aspect-ratio tolerance for first_frame/last_frame. It also ties duration_s to billing and attempt to deduplication. It leaves model, resolution, aspect_ratio, camera and prompt uncharacterized, so it doesn't fully compensate.

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 ("Generate one silent clip") plus the charging unit, and names the siblings it interacts with (quote_video, get_run, list_prices). It also enumerates its three modes, so an agent can distinguish it from generate_image or quote_video without opening a schema.

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 an explicit pre-call step ("Call quote_video first and show the user the price"), a post-call step ("Poll the run with get_run"), and a fallback (list_prices names every price). It also states how to force a duplicate (pass attempt 2), which is exactly when-to-use-this-vs-what guidance.

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