Skip to main content
Glama

enqueue_detect_characters

Start character detection server-side as a background job. Use this ONLY when the user has EXPLICITLY asked to detect/identify characters AND the script (scenes) is already written. The job reads the movie idea + script and extracts all named characters with physical and voice descriptions, persisting them to the cast. When the cast already has characters it only ADDS the ones the script names that the cast lacks; every existing character (name, description, portrait, voice) stays exactly as it is. Do NOT call this if cast already has characters unless the user explicitly asks to find or add characters from the script. Rebuilding the whole cast (replaceCast) is asked by the server first: the call answers needsConfirmation. In the Promvie studio chat the server shows the user this question in its own words and does it only on their plain yes: never ask it yourself, never say it was done, and never call again with the confirm flag there. Through the API, tell your user exactly what is lost and, only after they agree in a later message, call again with the confirm flag and the confirmId it gave. Prefer this over suggest_next_step({ action: "DETECT_CHARACTERS" }) when the user gives a direct command. The same job also finds the places and the key props. Pass propsOnly: true to find only the key props (the cast and places stay exactly as they are): use it when the user asks to find or detect the props of a movie that already has its cast.

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_detect_characters"
  }
}

Input Schema

NameRequiredDescriptionDefault
movieIdYesThe movie id (uuid) this call operates on. Get it from create_movie or list_movies.
confirmIdNoThrough the API: the confirmId from the needsConfirmation answer to a rebuild, sent back with confirmReplaceCast. It confirms that one question, once.
propsOnlyNoFind only the key props; never touches the cast or the places.
replaceCastNoOnly when the user explicitly asks to rebuild the cast (to replace it, start it over from the script). It REPLACES every existing character, with their descriptions, portraits and voices, which are lost. The first call never starts it: it answers needsConfirmation with what would be lost. Default (omitted): append-only, the existing cast is kept. Never on a series episode.
confirmReplaceCastNoThrough the API only. Leave unset on the first call. Set true (with replaceCast: true) only after this tool answered needsConfirmation for the rebuild and your user agreed in a later message, in a separate later call with the confirmId that answer gave. It starts only for the cast the user was told about. In the studio chat the server answers the question itself: never set it there.

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?

With no annotations, the description carries the full burden and does: it explains the append-only default, that existing characters (name, description, portrait, voice) are untouched, that the first rebuild call never executes but returns needsConfirmation, what replaceCast destroys, and how the confirmation flow differs between studio chat and the API. This is unusually complete for a mutating background job.

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 action, then preconditions, then the destructive-rebuild protocol; every paragraph has a job. It is long and the confirmation rules are restated in both the description and the schema, which costs some density, but there is no filler.

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 destructive-capable background job with no annotations and no output schema, the description covers the confirmation protocol, exact loss on rebuild, and the propsOnly variant thoroughly. It does not say what the immediate response contains (e.g., a job id) or how to follow up with get_pipeline_state/cancel_job, which would complete the loop.

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 100%, so the schema already defines each parameter and the description largely echoes propsOnly and replaceCast semantics. It still adds genuine meaning about sequencing — that confirmReplaceCast must come in a separate later call with the confirmId from a prior needsConfirmation answer — which the schema states more compactly.

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 ('Start character detection server-side as a background job') and immediately scopes what the job produces (named characters with physical/voice descriptions persisted to the cast). It also discloses a secondary effect (it also finds places and key props) so the agent is not surprised, and routes away from `suggest_next_step({action: "DETECT_CHARACTERS"})` explicitly.

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 preconditions (user must have EXPLICITLY asked AND the script must be written), an explicit prohibition (do NOT call if the cast already has characters unless the user asks to find/add from the script), and an explicit alternative preference over suggest_next_step. It also conditions propsOnly on a distinct user request, so when-to-use is fully covered.

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