Skip to main content
Glama

Generate a clip

generate_video

Generate one video clip from a prompt, first frame, or references, then poll the run to fetch the result; failed generations are not charged.

Instructions

Input: the same fields as quote_video, plus attempt. Generate one clip from a prompt or a shot, a NEW run, charged unit_credits per second of duration_s once delivered. Modes: text; first_frame (the requested format within 2%); reference (1 to 4). Poll get_run. A generation that fails is charged nothing. Repeating an identical request returns the run it started, starting nothing new; pass attempt 2 for another one. Price: 5 to 143 credits per second of clip, by model and size. Quote first with quote_video.

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": {
      "model": "<model>",
      "mode": "<mode>",
      "aspect_ratio": "<aspect_ratio>",
      "duration_s": "<duration_s>"
    },
    "name": "generate_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes
shotNo
audioNo
modelYes
cameraNo
promptNo
attemptNo
keep_textNo
duration_sYes
last_frameNo
referencesNo
resolutionNo
first_frameNo
max_creditsNo
aspect_ratioYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.73.0
    • addedInput schema / properties / attempt / minimum
      Added value: +1
  2. Changed1 schema field changedv0.72.0
    • addedInput schema / properties / audio
      Added value: +{
      +  "type": "boolean"
      +}
  3. Changed2 schema fields changedv0.61.0
    • addedInput schema / properties / max_credits
      Added value: +{
      +  "type": "integer"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "model",
      -  "mode",
      -  "aspect_ratio",
      -  "resolution",
      -  "duration_s"
      -]New value: +[
      +  "model",
      +  "mode",
      +  "aspect_ratio",
      +  "duration_s"
      +]
  4. Changed3 schema fields changedv0.56.0
    • addedInput schema / properties / keep_text
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / shot
      Added value: +{
      +  "type": "object"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "prompt",
      -  "model",
      -  "mode",
      -  "aspect_ratio",
      -  "resolution",
      -  "duration_s"
      -]New value: +[
      +  "model",
      +  "mode",
      +  "aspect_ratio",
      +  "resolution",
      +  "duration_s"
      +]
  5. Changed21 schema fields changedv0.39.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / aspect_ratio / enum
      Removed value: -[
      -  "9:16",
      -  "16:9"
      -]
    • removedInput schema / properties / attempt / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / attempt / minimum
      Removed value: -1
    • removedInput schema / properties / camera / enum
      Removed value: -[
      -  "static",
      -  "push_in",
      -  "pull_back",
      -  "pan"
      -]
    • removedInput schema / properties / duration_s / exclusiveMinimum
      Removed value: -0
    • removedInput schema / properties / duration_s / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / first_frame / anyOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "rights_confirmed": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "upload_id": {
      -        "pattern": "^upl_[a-f0-9]{32}$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "upload_id",
      -      "rights_confirmed"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "run_id": {
      -        "pattern": "^run_[a-zA-Z0-9]+$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "run_id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "asset_id": {
      -        "pattern": "^ast_[a-f0-9]{32}$",
      -        "type": "string"
      -      },
      -      "rights_confirmed": {
      -        "const": true,
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "asset_id"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedInput schema / properties / first_frame / type
      Added value: +"object"
    • removedInput schema / properties / last_frame / anyOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "rights_confirmed": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "upload_id": {
      -        "pattern": "^upl_[a-f0-9]{32}$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "upload_id",
      -      "rights_confirmed"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "run_id": {
      -        "pattern": "^run_[a-zA-Z0-9]+$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "run_id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "asset_id": {
      -        "pattern": "^ast_[a-f0-9]{32}$",
      -        "type": "string"
      -      },
      -      "rights_confirmed": {
      -        "const": true,
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "asset_id"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedInput schema / properties / last_frame / type
      Added value: +"object"
    • removedInput schema / properties / mode / enum
      Removed value: -[
      -  "text",
      -  "first_frame",
      -  "reference"
      -]
    • removedInput schema / properties / model / enum
      Removed value: -[
      -  "seedance-2.0",
      -  "seedance-2.0-mini",
      -  "seedance-2.0-fast",
      -  "seedance-2.5",
      -  "kling-3.0",
      -  "gemini-omni-flash-1.1"
      -]
    • removedInput schema / properties / prompt / maxLength
      Removed value: -2000
    • removedInput schema / properties / prompt / minLength
      Removed value: -1
    • removedInput schema / properties / references / items / anyOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "rights_confirmed": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "upload_id": {
      -        "pattern": "^upl_[a-f0-9]{32}$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "upload_id",
      -      "rights_confirmed"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "run_id": {
      -        "pattern": "^run_[a-zA-Z0-9]+$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "run_id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "asset_id": {
      -        "pattern": "^ast_[a-f0-9]{32}$",
      -        "type": "string"
      -      },
      -      "rights_confirmed": {
      -        "const": true,
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "asset_id"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedInput schema / properties / references / items / type
      Added value: +"object"
    • removedInput schema / properties / references / maxItems
      Removed value: -4
    • removedInput schema / properties / references / minItems
      Removed value: -1
    • removedInput schema / properties / resolution / enum
      Removed value: -[
      -  "360p",
      -  "480p",
      -  "720p",
      -  "1080p"
      -]
  6. 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"
      +]
  7. Addedv0.33.0

TDQS

A4.3/5.0
Behavior4/5

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

Goes well beyond the annotations: billing is charged per second of duration_s only on delivery, failures are free, an identical repeat returns the existing run rather than starting a new one, and price spans 5–143 credits/sec by model and size. The only gap is that it doesn't say who can call it or how long a run typically takes before polling returns a result.

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?

Densely front-loaded: input source, action, billing, modes, polling, failure policy, idempotency, price, and the quote-first rule all land in a few sentences with no filler. It is telegraphic to the point that mode syntax like 'first_frame (the requested format within 2%)' takes a second read to parse.

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?

For a 15-parameter mutating tool with no output schema and no annotation depth, the description covers the decisions that matter most — cost, idempotency, failure charging, and what to call before and after. What's missing is per-field meaning for the majority of the input schema, which is the main residual risk given 0% schema coverage.

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

Parameters3/5

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

With 0% schema description coverage across 15 parameters, the description carries the full burden and covers only part of it: attempt (retry semantics), duration_s (billing basis), mode (three modes with cardinality/format constraints), references (1 to 4), and model (price driver). The remaining fields — shot, camera, audio, keep_text, resolution, max_credits, aspect_ratio, first_frame, last_frame — are left to 'the same fields as quote_video', which is a reasonable delegation but forces a sibling lookup.

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 clip from a prompt or a shot') and immediately scopes it as 'a NEW run' distinct from quoting or polling. It also enumerates the three generation modes, so an agent can tell this apart from quote_video, get_run, and generate_image without opening the 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?

Explicit sequencing: 'Quote first with quote_video' and 'Poll get_run' name the alternatives and the moment to use them. It also gives the retry rule ('pass attempt 2 for another one') and the mode-selection conditions (text / first_frame / reference), leaving little to inference.

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