Skip to main content
Glama

enqueue_generate_images

Start character portrait, voice, location image AND key prop image generation server-side as a background job. Without characterIds or locationIds it also makes one image for every location without one and every key prop a scene uses without one (a prop image is made on the location model, at its price). Use this when the user wants to (a) fill in missing character images, (b) regenerate one or more characters, or (c) give a character a voice or a different voice. Cast must have characters with physical descriptions. Pass characterIds to scope the run; omit to cover every character missing an image. Through the API, replace: true regenerates the existing image on the targeted characters. By default (replace omitted) characters that already have an image are skipped. In the studio chat, replace, replaceLocations or replaceProps on a character, place or key prop that has an image starts nothing: the server shows the user a card with exactly what is redrawn, its price and a Start button, and only their tap on Start redraws it. Characters, places and props with no image yet start as usual. A portrait is drawn from the description as it is saved: while a description rewrite of that character is still running, the job waits for it. VOICES: the same job also creates a short voice sample for every targeted character that has a voice description and no sample yet (narrators included). Voice samples are free; every scene render attaches them so a character sounds the same in every scene. An existing voice is kept unless you pass newVoice: true together with characterIds, which replaces it (use only when the user asks for a different voice, and say that scenes already rendered keep the old voice until they are rendered again).

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

Input Schema

NameRequiredDescriptionDefault
movieIdYesThe movie id (uuid) this call operates on. Get it from create_movie or list_movies.
propIdsNoKey prop ids (from list_props) to make reference images for (a place image's price each). Alone, the job makes only those prop images (no portraits, no places). Without propIds, the job makes the images of the key props a scene uses that have none whenever it makes the image of every location without one (no characterIds and no locationIds given).
replaceNoThrough the API: when true, the targeted characters get a new image even if they have one ("regenerate" / "redo"). In the studio chat, for a character that already has a portrait, it starts nothing: the server shows the user a card with the price and a Start button, and only their tap on Start redraws it. Defaults to false.
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.
newVoiceNoWhen true, replace the voice sample of the targeted characters with a new voice. Portraits are untouched unless `replace` is also true. Defaults to false.
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.
skipPlacesNoSeries episodes: pass it when get_pipeline_state's nextStepInput has it (the episode's locations were already tried, so only its key props are made).
locationIdsNoOptional list of location ids to generate images for. Omit to cover every location without an image (locations are skipped when characterIds is given and this is not).
characterIdsNoOptional list of character ids to generate images for. Omit to cover all characters without images.
replacePropsNoThrough the API, with propIds: make a new image for those props even if they have one. In the studio chat a key prop that has an image starts nothing: the server shows the user a card with its price and a Start button.
locationsOnlyNoSeries episodes: pass it when get_pipeline_state's nextStepInput has it. The job then makes no portrait but those of characterIds, and the images of every location and key prop without one.
replaceLocationsNoThrough the API, with locationIds: make new images for those locations even if they have one. In the studio chat a location that has an image starts nothing: the server shows the user a card with its price and a Start button.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/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 does so: it discloses credit pricing (prop images bill at the location model's price, voice samples are free), the studio-chat confirmation-card behavior instead of immediate execution, the dependency on physical descriptions, the wait on an in-flight description rewrite, and that already-rendered scenes keep the old voice after a newVoice change.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is valuable but delivered as a dense run-on block with stacked parentheticals, and the API-vs-studio-chat card behavior is restated three times across replace, replaceLocations and replaceProps. The VOICES section is the only visible structural marker; the rest of the guidance would benefit from the same treatment.

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 12-parameter job-starting tool that spends credits, the description covers preconditions (cast must have physical descriptions), partial-run semantics, billing, interaction hazards in the studio chat, and voice sample propagation across scenes. With no output schema and no annotations, nothing essential is left implicit.

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 already 100%, so the baseline is 3; the description still adds cross-parameter meaning the schema states only locally — that propIds alone restricts the run to prop images with no portraits or places, and that omitting characterIds/locationIds triggers the sweep of locations and scene-used props. The replace/newVoice explanations largely restate the corresponding schema descriptions, which caps it below 5.

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?

Starts with a concrete verb and enumerates the exact resources produced: character portraits, voice samples, location images and key prop images, delivered as a server-side background job. The scope sentence ("Pass `characterIds` to scope the run; omit to cover every character missing an image") makes it unmistakable versus siblings like enqueue_generate_cover or enqueue_generate_shot_image.

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 explicit trigger conditions in list form: (a) fill in missing character images, (b) regenerate characters, (c) give a character a voice or a different voice. It also names the boundary cases that select other paths — retryOf only for re-running failed/cancelled jobs, newRequest only after a needsChoice, newVoice only when the user asks for a different voice.

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