Skip to main content
Glama

delete_shot

Remove a single shot, with its image, from a scene. Destructive: only call after the user has explicitly asked. The first call never deletes: it answers needsConfirmation naming the shot 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. After deletion, the scene's remaining shots keep their existing shot_order (no automatic compaction). If the user wants the gap filled, suggest enqueue_generate_shots({ sceneIds: [N], replace: true }).

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

Input Schema

NameRequiredDescriptionDefault
shotIdYesShot id to delete.
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, 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 shot and its image 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.6/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so: it declares the operation destructive, explains that the first call never deletes and instead returns needsConfirmation, states exactly what is removed (the shot and its image), and discloses the post-condition that remaining shots keep their existing shot_order. These are precisely the behaviors an annotation would have covered and more.

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 and destructive warning, then the confirmation protocol, then the post-deletion ordering note. Sentences are dense and purposeful, though the chat/API confirmation rules partially repeat what is already in the confirmDelete schema description.

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?

No output schema exists, and the description compensates by describing the non-obvious first-call return value (needsConfirmation naming the shot and what goes with it) as well as the confirmId round-trip. For a destructive multi-step tool, nothing an agent needs to call it correctly is missing.

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 description coverage is 100% and the schema already explains shotId, movieId, confirmId, and confirmDelete in detail, including the chat-versus-API rule. The description reinforces the confirm flow but adds little parameter-level meaning beyond that schema text, so the baseline 3 applies.

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?

Opens with a specific verb and resource plus scope: 'Remove a single shot, with its image, from a scene.' The phrase 'single shot ... from a scene' implicitly separates it from scene-level or batch siblings like delete_scene and update_shot, and the added note about shot_order shows the author knows what else the operation touches.

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?

Explicitly states the precondition ('only call after the user has explicitly asked'), then gives a full two-phase protocol for both surfaces: studio chat (never ask yourself, never set confirm) versus API (tell the user what is lost, wait for a later message, resend with confirm flag + confirmId). It also names the follow-up alternative `enqueue_generate_shots({ sceneIds: [N], replace: true })` for filling the ordering gap.

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