Skip to main content
Glama

enqueue_generate_shot_image

Generate or regenerate the image for one or more shots. Covers BOTH first-time generation (shots with no image yet) AND regeneration of existing shot images. Use whenever the user is asking about per-shot images, including: "generate the first shot of every scene", "render the start image for each scene's opening shot", "generate every shot image for scene 4", "redo shot 3 of scene 2", "rerender the close-up of Irina", "the bartender shot looks wrong, redo it". Pass shotIds (resolve via list_shots / find_entity — group by scene_id and take the lowest shot_order per scene for first-shot patterns). replace: false for first-time generation (default in the schema); replace: true when regenerating so the UI shows Processing instead of the stale frame. modelId is optional — defaults to the user's Settings → Image (Studio) preference. Each shot costs image-model credits, taken up front; a shot whose image fails says what became of its credits (plan credits refunded after the plan ended end with it). Submission is asynchronous: the runner queues each shot to FAL and the webhook persists the result.

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>",
      "shotIds": "<shotIds>"
    },
    "name": "enqueue_generate_shot_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelIdNoOptional override of the image model. Defaults to the user's Settings preference.
movieIdYesThe movie id (uuid) this call operates on. Get it from create_movie or list_movies.
replaceNoClear existing image_url + storage_path on the targeted shots before submission so the UI shows a Processing state instead of the stale frame. Defaults to true.
retryOfNoOnly when this RE-RUNS a job that failed or was cancelled (the user asks to try again or retry it): that job's id, from list_running_jobs (recentlyEnded). Only what that run did not finish is made and charged. Leave it out for anything the user asks for anew, even the same thing again: then every target gets a new picture.
shotIdsYesRequired. List of shot ids to regenerate. Resolve via list_shots / find_entity.
newRequestNoOnly after this tool answered needsChoice (the same request failed within the hour) and the user wants NEW pictures for all of them anyway (not a retry): set true. Never together with retryOf.
useContinuityRefNoWhether to seed the new image with the previous shot's last frame for visual continuity. Defaults to true. Set false only when the user explicitly wants a clean reroll.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and mostly succeeds: it discloses up-front credit charging, failure/refund handling, asynchronous FAL queuing plus webhook persistence, and the UI Processing state that replace triggers. Gaps: the credit-refund sentence ("plan credits refunded after the plan ended end with it") is garbled, and the stated replace default ("false … default in the schema") conflicts with the schema's "Defaults to true," which would mislead the agent about default side effects.

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-loads the purpose and mode distinction well, and the example utterances are efficient disambiguators rather than filler. The credits/refund sentence is malformed and the parenthetical about needsChoice is easy to miss, costing some clarity.

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 7-parameter, no-annotation, no-output-schema mutation tool, it covers cost, refunds, async lifecycle, UI effect, and ID resolution — most of what an agent needs before calling. What it omits is what the call returns (job id for later polling) and a consistent statement of defaults, which matters given the retryOf/newRequest interplay.

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 coverage is 100%, so the baseline is 3, and the description does add real meaning for retryOf, newRequest, and useContinuityRef beyond the schema text. However, it actively contradicts the schema on replace's default (description says false, schema says true), which reduces rather than adds confidence on the single most behaviorally significant parameter.

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?

Specific verb+resource: "Generate or regenerate the image for one or more shots," with explicit scope covering both first-time generation and regeneration. It scopes itself to per-shot images, which separates it from the sibling enqueue_generate_cover/poster/storyboards tools without needing their schemas.

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?

Provides concrete trigger utterances ("generate the first shot of every scene," "redo shot 3 of scene 2") plus resolution instructions — resolve shotIds via list_shots / find_entity, grouping by scene_id and taking the lowest shot_order. It also gives conditional guidance for replace, retryOf, and newRequest, so the agent knows which mode to pick and when.

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