Skip to main content
Glama

enqueue_generate_script

Start generating the screenplay server-side as a background job. Use this ONLY when the user has EXPLICITLY asked to write/generate the script AND the idea (logline + outline) is already defined, or they uploaded a file to build it from (an uploaded screenplay keeps its scenes and lines as written). The job runs asynchronously — the response returns immediately with a jobId the client polls. Do NOT call this if the script already has scenes with text unless the user explicitly asks to regenerate. Prefer this over suggest_next_step({ action: "GENERATE_SCRIPT" }) when the user gives a direct command ("write the script", "generate it"); fall back to suggest_next_step when you want to offer it as an option.

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

Input Schema

NameRequiredDescriptionDefault
movieIdYesThe movie id (uuid) this call operates on. Get it from create_movie or list_movies.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations at all, the description carries the full burden and does so: it discloses the asynchronous execution model, immediate return with a pollable jobId, the overwrite/regeneration guard for scripts with existing scene text, and the preservation semantics for uploaded screenplays. These are exactly the traits an agent cannot infer from the one-parameter schema.

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 constraints, then the sibling routing rule — a logical order with no filler sentences. It is dense and long, but nearly every clause carries a distinct decision rule; the parenthetical on uploaded screenplays is the only mildly expendable element.

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 one-parameter background-job tool with no output schema, the definition covers everything an agent needs: prerequisites, async return contract (jobId + polling), re-run guard, and routing versus the alternative tool. No material gap remains.

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?

Only one parameter (`movieId`) and schema description coverage is 100%, so the schema already explains that it is a UUID obtained from `create_movie` or `list_movies`. The description adds no further meaning about the parameter; baseline 3 applies when the schema does the heavy lifting.

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?

Opening sentence states a specific verb and resource: 'Start generating the screenplay server-side as a background job.' It also differentiates itself from sibling generation tools (images, poster, shots) by naming the screenplay as the artifact and by contrasting with `suggest_next_step`.

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?

Explicit when-to-use ('ONLY when the user has EXPLICITLY asked... AND the idea is already defined, or they uploaded a file'), explicit when-not ('Do NOT call this if the script already has scenes with text unless... regenerate'), and a named alternative (`suggest_next_step({ action: "GENERATE_SCRIPT" })`) with the condition that selects it.

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