Skip to main content
Glama

Delete story elements

delete_entities
Destructive

Delete story elements (characters, places, objects), exactly as deleting them in the Story elements panel does: the element, its moodboard, reference sheet and production group go, uploaded images on it are removed, and generated images stay in the Library. Shots that cite it keep their text but lose the reference.

Only delete when the user explicitly asks for it. Call it without confirm first: nothing is deleted, and it returns a preview with each element (name, whether it has a reference sheet, how many script lines use it, which shots cite it). Show the user that list and ask once. Only after the user agrees, call again with the same entityIds and confirm: true. It cannot be undone.

Like the app, it refuses an element the script still uses (a character with cues, a place with scene headings, an object named in the script). When the element is a duplicate of another, use merge_entities instead: it moves the script lines and shot references onto the element kept, then deletes the duplicate. entityIds come from list_entities; never invent them. Max 20 per call.

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": {
      "entityIds": "<entityIds>",
      "projectId": "<projectId>"
    },
    "name": "delete_entities"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoLeave out to get a preview of what would change; nothing is changed. Ask the user to confirm it, then call again with confirm: true once they agree.
entityIdsYesStory elements to delete (entityId from list_entities).
projectIdYesScreenWeaver project id (from list_projects).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, but the description goes well beyond that: it enumerates the cascade (moodboard, reference sheet, production group removed; uploaded images removed; generated images kept in the Library), notes that citing shots keep text but lose the reference, states 'It cannot be undone', and documents refusal rules for script-used elements. This is exactly the destructive-side context an agent needs.

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 what the tool does and why it behaves that way, then the operational protocol, then edge cases. Dense but every sentence carries actionable information; the cascade sentence is long yet non-redundant.

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 destructive, irreversible tool with no output schema, the description covers outcomes, the preview response shape (name, reference sheet, script line count, citing shots), refusal behavior, the merge alternative, and ID provenance. Nothing material for correct invocation 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 schema already explains all three parameters and sets the baseline at 3. The description adds real constraints not in the schema fields: entityIds must come from list_entities and never be invented, the 20-item cap, and the confirm/no-confirm preview semantics as a workflow rather than a flag.

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 ('Delete story elements (characters, places, objects)') and immediately defines the exact semantics by analogy to the Story elements panel. An agent can distinguish this from merge_entities, delete_nodes and delete_shots without opening any 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 an explicit precondition ('Only delete when the user explicitly asks'), a mandatory two-call protocol (preview first, then confirm: true after agreement), and a named alternative with its selection condition ('When the element is a duplicate of another, use merge_entities instead'). It also states the case where the tool refuses rather than deleting.

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.