Skip to main content
Glama

generate_video

Create an MP4 clip from a prompt and 1-7 reference images, saved to your Voidless library. Use it for trailer shots, cutscenes or animated backgrounds; returns an asset ID for extending.

Instructions

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
widthNoWidth in px (default 1280). With height it sets the aspect: 1280x720 = 16:9 landscape, 720x1280 = 9:16 portrait
heightNoHeight in px (default 720). See width
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. Changed5 schema fields changedv0.1.1
    • 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"
  2. First observedv0.1.0

TDQS

A5/5.0
Behavior5/5

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

Goes well past the annotations (which only say it is a non-idempotent, non-destructive write): it discloses pricing (15 credits/second, 60 for the 4 s default), that the charge applies on every call and is refunded on failure, and that the call returns a job rather than finished output. It also names the return payload (asset ID, MP4 link, thumbnail) even though no output schema exists.

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?

Front-loads the core action in the first clause, then packs cost, latency, return shape and sibling routing into three tight sentences with no filler or repetition.

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?

For a five-parameter generative job with no output schema, the definition covers what is produced, how long it takes, what it costs, what comes back and how to continue the result — nothing an agent needs in order to call it correctly is missing.

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?

Schema coverage is already 100%, and the description still adds value by tying duration to cost and by restating the 1-7 reference-image range that defines valid input. It also implies the returned asset ID feeds extend_video, which tells the agent how the output parameter flows into the next call.

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 a new MP4 video clip from a prompt plus reference images, saved as a new library asset — and explicitly contrasts with extend_video, animate_sprite and generate_animation_set, so the agent can place it among siblings 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?

Names the exact alternatives and the condition that selects them: use extend_video to continue an existing video, animate_sprite/generate_animation_set for sprite-frame motion. It also warns that a run takes minutes, so the agent knows to follow up with check_generation rather than wait.

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