Skip to main content
Glama

enqueue_generate_scene_video

Render one scene as one video server-side as a background job, from its shots (storyboard images, character references and per-shot prompts). A scene longer than the model's take renders in parts, each continuing from the one before, joined into one clip. This is how every video is made. The scene must already have shots. sceneId is required. Do NOT call this across multiple scenes — issue one call per scene if the user asks for several. Pass modelName to render with a specific full-scene video model; omit it to keep the model the scene was rendered on (or the default for a first render).

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": {
      "movieId": "<movieId>",
      "sceneId": "<sceneId>"
    },
    "name": "enqueue_generate_scene_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
movieIdYesThe movie id (uuid) this call operates on. Get it from create_movie or list_movies.
quoteIdNoThe quoteId from the price answer this call confirms. The render starts only while that quote stands: same scene and model, a price no higher, at most 15 minutes old, used once.
sceneIdYesThe scene id (number) to render as a single video.
keepShotsNoOnly when the user said to render the scene's current shots as they are, after this tool answered sceneChanged for the scene (the video will not show that change). It counts only as the answer to that question: sent before it, the question is asked instead. The price then says it renders the old shots. Never set it on your own; otherwise offer enqueue_revise_scene, which makes new shots and then renders the scene.
modelNameNoOptional full-scene video model to render with (registry name), e.g. seedance_2_5_flash_reference_to_video, kling_v4_reference_to_video, kling_v4_720p_reference_to_video, grok_1_5_reference_to_video, wan_3_0_prime_reference_to_video, minimax_h3_max_reference_to_video, minimax_h3_max_1080p_reference_to_video. Omitted: a scene rendered before keeps the model it was made on; a first render or a free preview take uses the account default.
confirmCostNoLeave unset on the first call: the server answers with the real credit price (continuation parts included), the user's balance and a quoteId instead of starting, and says what to tell the user. Set true ONLY in a later turn, after the user has replied yes to that price, and pass the quoteId with it.
generateAudioNoWhether to also generate audio for the stitched scene. Defaults to false.
confirmRerenderNoOnly when the scene ALREADY has a finished video and its script and shots have not changed since: set true ONLY if the user's latest message explicitly asks for a NEW render of that scene and they know it costs credits again. "Finish", "complete" or "check" scene N never means re-render. Leave unset otherwise; the price answer says when a render would replace a finished video, and agreeing to that price is enough (no second flag).
keepShotsTextVersionNoWith keepShots: the sceneTextVersion of the sceneChanged reply your user answered. keepShots counts only for that text of the scene: if the scene changed again since, you are asked again, with the new version.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does substantial work: it discloses that the job is asynchronous, that long scenes render in parts and are joined into one clip, and that the first call returns a price quote rather than starting a render. It stops short of saying what an enqueued job returns (e.g. a job id to poll via get_render_status), which is the one behavioral gap.

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 the core action and scope in the first sentence, with prerequisites and the multi-scene exclusion following. The sentence 'This is how every video is made' is mildly filler but earns some routing value; otherwise there is no wasted wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter background-job tool with no output schema and no annotations, the definition covers prerequisites, pricing/quote semantics and model selection well. It leaves the post-enqueue story implicit: nothing says a job is created that must be tracked with get_render_status, which an agent needs to close the loop.

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?

Schema description coverage is 100%, so every one of the 9 parameters is already documented in structured form; the description's parameter talk ('`sceneId` is required', 'omit `modelName` to keep the scene's model') largely restates it. It does add a little routing meaning around modelName and keepShots, but not enough to exceed the baseline for fully-covered schemas.

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 ('Render one scene as one video'), the mechanism ('server-side as a background job'), and the input source ('from its shots'). It explicitly routes away from itself toward enqueue_revise_scene when shots need changing, so an agent can distinguish it from the other generate_* 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?

Gives hard when-to-use conditions ('The scene must already have shots', '`sceneId` is required') and an explicit when-not ('Do NOT call this across multiple scenes — issue one call per scene'). It also names the alternative (enqueue_revise_scene) and the condition that selects it, plus the multi-turn confirmCost flow rules.

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