Skip to main content
Glama

generate_video

Generate a new MP4 video clip (a trailer shot, cutscene or animated background) from a prompt and 1-7 reference images, saved as a new video asset in the user's Voidless library. To continue an existing video use extend_video; to make a sprite move (a walk, an attack) as game frames use animate_sprite or generate_animation_set. 15 credits per second (60 for the default 4 s), charged on every call and refunded if it fails; a run usually takes minutes and returns a job for check_generation. Returns the asset ID, the MP4 link and a thumbnail; pass the asset ID to extend_video to make it longer.

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": {
      "prompt": "<prompt>",
      "images": "<images>"
    },
    "name": "generate_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
aspectNoThe clip's shape: '16:9' landscape (864x496, default) or '9:16' portrait (496x864)16:9
imagesYes1-7 reference images for the characters, objects and style in the clip: image keys from get_asset, https URLs, or data: URIs
promptYesWhat happens in the clip: the action, camera movement and setting, e.g. 'slow push-in on the knight drawing his sword at dusk'
durationNoClip length in seconds, 4-15 (default 4). Cost is 15 credits per second

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / aspect
      Added value: +{
      +  "default": "16:9",
      +  "description": "The clip's shape: '16:9' landscape (864x496, default) or '9:16' portrait (496x864)",
      +  "enum": [
      +    "16:9",
      +    "9:16"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / height
      Removed value: -{
      -  "default": 720,
      -  "description": "Height in px (default 720). See width",
      -  "maximum": 9007199254740991,
      -  "minimum": -9007199254740991,
      -  "type": "integer"
      -}
    • removedInput schema / properties / width
      Removed value: -{
      -  "default": 1280,
      -  "description": "Width in px (default 1280). With height it sets the aspect: 1280x720 = 16:9 landscape, 720x1280 = 9:16 portrait",
      -  "maximum": 9007199254740991,
      -  "minimum": -9007199254740991,
      -  "type": "integer"
      -}
  2. Changed5 schema fields changed
    • changedInput schema / properties / duration / description
      Previous value: -"Seconds (4–15)"New value: +"Clip length in seconds, 4-15 (default 4). Cost is 15 credits per second"
    • addedInput schema / properties / height / description
      Added value: +"Height in px (default 720). See width"
    • changedInput schema / properties / images / description
      Previous value: -"Reference images: image keys from get_asset, https URLs, or data: URIs"New value: +"1-7 reference images for the characters, objects and style in the clip: image keys from get_asset, https URLs, or data: URIs"
    • changedInput schema / properties / prompt / description
      Previous value: -"What happens in the clip"New value: +"What happens in the clip: the action, camera movement and setting, e.g. 'slow push-in on the knight drawing his sword at dusk'"
    • addedInput schema / properties / width / description
      Added value: +"Width in px (default 1280). With height it sets the aspect: 1280x720 = 16:9 landscape, 720x1280 = 9:16 portrait"
  3. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the annotations (which only declare a non-read-only, non-idempotent, non-destructive write): it discloses the credit cost (15/s, 60 for the 4 s default), that charges occur on every call and are refunded on failure, that a run takes minutes and returns an async job for check_generation, and exactly what comes back (asset ID, MP4 link, thumbnail). This is precisely the extra context an agent needs before a costly, slow call.

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?

The core purpose and artifact come first, followed by sibling routing, then cost/latency, then return values and follow-up. Dense with semicolons but every clause carries decision-relevant information; no filler.

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 supplies the return shape and the follow-up step (pass asset ID to extend_video), plus async handling via check_generation and the credit/refund model. Nothing needed to call this expensive generation 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?

Schema coverage is 100%, so the baseline is 3; the description adds meaningful meaning by tying duration to pricing (15 credits per second) and by characterizing prompt content (action, camera movement, setting) rather than restating the parameter list. The aspect parameter is left entirely to the schema, which is acceptable given full coverage.

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 artifact: generate a new MP4 video clip (trailer shot, cutscene, animated background) from a prompt plus 1-7 reference images, saved as a library asset. It also names what it is not (extend_video, animate_sprite, generate_animation_set), so an agent can route correctly 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 Guidelines5/5

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

Explicitly routes: use extend_video to continue an existing video, animate_sprite or generate_animation_set for game-frame sprite motion, and this tool for new clips. Both the when-to-use and the when-to-use-something-else cases are stated, not implied.

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.

Resources