Skip to main content
Glama

delete_scene

Remove one, several or all scenes from the script, in one call. This is the ONLY way to delete scenes: never ask the script writer (write_script_scenes) to delete or empty them. Destructive: only call after the user has explicitly asked. Pass sceneIds for specific scenes, or all: true to clear the script. A deleted scene takes its script text, and the shots, storyboard and video made from it (a render still in flight too, its credits not refunded), out of the movie, in one step. The first call never deletes: it answers needsConfirmation naming each scene (number and title) and what goes with it. 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. Through the API the confirming call names the same scenes. The result lists what was removed and what remains: report exactly that.

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": "delete_scene"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNotrue to delete every scene in the script.
movieIdYesThe movie id (uuid) this call operates on. Get it from create_movie or list_movies.
sceneIdNoA single scene id (older form of sceneIds).
sceneIdsNoScene ids to delete.
confirmIdNoThrough the API: the confirmId from the needsConfirmation answer, sent back with confirmDelete. It confirms that one question, once.
confirmDeleteNoThrough the API only. Leave unset on the first call. Set true ONLY after this tool answered needsConfirmation and your user, told that the scenes, their script text and the shots, storyboard and video made from them will be deleted, agreed in a later message, in a separate later call that also sends the confirmId. 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.8/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it flags destructiveness, enumerates the cascade (script text, shots, storyboard, video, an in-flight render with credits not refunded), and documents the two-phase confirm behavior including the first call's needsConfirmation answer. It even states what the result contains. This is well beyond a bare "deletes scenes".

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 purpose, then the exclusivity rule, then the destructive warning, then parameters and cascade — a sensible order for a dangerous tool. It is long and repeats the confirm-flag prohibition across several sentences ("never ask it yourself, never say it was done, and never call again with the confirm flag there"), but the repetition is defensible safety emphasis rather than filler.

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?

A destructive mutation tool with no annotations and no output schema, yet the description covers required permissions/consent, cascade effects, confirmation flow differences per surface, and what the result reports. Nothing an agent needs to call it safely is missing.

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 baseline is 3. The description still adds routing meaning to the parameters — sceneIds for specific scenes versus all:true to clear the script — and, more importantly, explains the cross-call semantics of confirmDelete/confirmId (never set in studio chat, only in a separate later API call) that the schema documents only in isolation.

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 ("Remove one, several or all scenes from the script") plus scope and call cardinality ("in one call"). It also explicitly separates itself from write_script_scenes, so an agent can route correctly without opening either 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 explicit when-to-use ("only call after the user has explicitly asked"), an explicit when-not ("never ask the script writer (write_script_scenes) to delete or empty them"), and the two distinct confirmation protocols for studio chat versus API. Nothing about invocation conditions is left to inference.

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