Skip to main content
Glama

generate_video

Convert a Blender scene's camera animation into a realistic MP4 video using MiniMax H3, with optional style references, key frames, and resolution choices.

Instructions

Turn the scene's animation, seen through the scene camera, into a realistic video with
MiniMax H3 Max, and save it as an MP4 file. Nothing is added to the scene.

Only when the user asks for a video. Blender renders the frame range as a quick flat-shaded
layout video; H3 keeps its camera, motion, timing and object placement and invents the look.

Never call it straight away. First, in order, stopping for the user's go-ahead at each step:
1. Block out the shot (objects, camera move, animation) and show it to the user with
   look(mode="frames", view="camera").
2. Style reference: generate_image(prompt=<the look>, images=["camera"]) on a representative
   frame. Show it to the user and revise it until they approve the look.
3. Key frames: generate_image(prompt=..., images=["camera", <approved style image>], frame=N)
   at the moments that matter (start, end, big changes; 2-4 is usually enough). Show them
   to the user and get their approval.
4. Ask which resolution: 480p, 768p or 1080p (there's no 720p), with the costs below.
Then call it with the approved style image and key frames in references.

A video costs the user money on their own fal key ($0.50 plus per second, 5-15 s billed: about
$0.75-$1.25 at 480p, $0.90-$1.70 at 768p, $1.30-$2.90 at 1080p) or Premium high-quality
generations (480p 1, 768p 2, 1080p 3, Pro and up). It takes several minutes: waits up to
wait_seconds (at most 45), then returns a job handle: call generate_video(job=..., name=...)
again to keep waiting.
Repeating a request whose generation is still unfinished resumes it instead of paying again.
You can't watch the result: tell the user where the file is.

Parameters:
- prompt: Optional. What the stand-in shapes are and how they move, and the look you want
  ("The blue box is a red vintage car driving through a rainy city at dusk"). Camera, motion,
  timing and object count always come from the render.
- references: Up to 8 absolute image paths or http(s) URLs for the look: the approved style
  image and key frames, photos of the subject or place. Without any, H3 makes its own.
- frame_start / frame_end: The range to render. Default: the scene's frame range. At most
  15 seconds at the scene's frame rate, and at least 1.
- resolution: 480p, 768p or 1080p, as the user chose. Default: their setting in the addon
  (480p unless changed).
- name: File name, without extension. Defaults to one made from the prompt.
- job: A handle from an earlier call, to resume waiting for it.
- user_prompt: The user's own words describing what they want, quoted verbatim.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generate_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobNo
nameNo
promptNo
frame_endNo
referencesNo
resolutionNo
frame_startNo
user_promptNo
wait_secondsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.4.0

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses monetary cost on the user's own fal key with per-resolution price ranges, Premium credit costs, a multi-minute runtime, the wait_seconds cap of 45, the returned job handle, and the resume-by-repeating behavior that avoids double billing. It also warns the result cannot be viewed and that the user must be told the file location.

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?

Front-loaded with purpose, then a gating sentence, then a numbered workflow — the ordering is good and the steps earn their space. It is long, and the resolution list with pricing appears both in step 4 and again in the parameters section, a minor redundancy that keeps it from a 5.

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 costly, slow, multi-step generation tool with 9 parameters and no annotations, the definition covers prerequisites, cost, timing, resumption and output handling. An output schema exists, yet the description still explains the job-handle return value, which is exactly what an agent needs to poll correctly.

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 0% and 9 parameters exist, yet all are explained with meaning beyond type: prompt's division of labor versus the render ('camera, motion, timing and object count always come from the render'), references format and count with the no-reference fallback, frame range defaults and 15-second cap, resolution choices with default source, and job as a resume handle. wait_seconds and user_prompt are also covered in the body.

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 ('turn the scene's animation, seen through the scene camera, into a realistic video... save it as an MP4 file'), names the model used, and adds the crucial scope constraint 'Nothing is added to the scene.' This clearly separates it from generate_image, which produces stills.

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 gates usage ('Only when the user asks for a video', 'Never call it straight away') and lays out an ordered prerequisite workflow that routes to siblings look(mode="frames", view="camera") and generate_image for layout, style reference and key frames, with user approval stops. It also tells the agent to ask about resolution before calling.

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