Skip to main content
Glama

Delete nodes

delete_nodes
Destructive

Delete nodes from one group (a shot, story element, scene or the art direction), as deleting them on the canvas does: the nodes and their wires go, their @# tokens are taken out of the prompts and texts of the same group, uploaded images stay in the Library and generated images stay in the Generation Center.

Only nodes that were added to the group can be deleted: reference images, extra text nodes, generators someone added. The app's own nodes are protected and refused: the Story element node, pinned nodes (a story element's description), a shot's card and parameters, and the generators and outputs every group is set up with (a shot's panel, a reference sheet, a production reference, the Art Style text and image).

Only delete when the user explicitly asks. Call it without confirm first: nothing is deleted, and it returns a preview with each node (type, name, its wires, the group's nodes whose prompt loses its token, the nodes elsewhere that cite it, and why a protected one cannot go). Show the user the list and ask once, then call again with the same target and nodeIds and confirm: true. nodeIds come from get_group; never invent them. Max 25 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": {
      "target": "<target>",
      "nodeIds": "<nodeIds>",
      "projectId": "<projectId>"
    },
    "name": "delete_nodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYesThe group, e.g. { kind: "shot", id: shotId } for a shot's panel group, { kind: "story_element", id: entityId } for a reference sheet, { kind: "scene", id: sceneId } for a scene's Production group, { kind: "art_direction" }.
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.
nodeIdsYesNodes of that group to delete (nodeId from get_group).
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, and the description adds substantial context beyond that: exactly what is destroyed (nodes and their wires), what survives (uploaded images, generated images), what is cleaned up elsewhere (@# token removal from the group's and other groups' prompts), an enumerated allowlist/denylist of protected node types, and the side-effect-free preview behavior. That is unusually complete disclosure for a destructive mutation.

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 and consequences, then the confirmation workflow, then constraints; no filler sentences. It is on the long side (~200 words) and the protected-node enumeration is dense, but each clause carries operational information an agent needs before a destructive call, so the length is largely earned.

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, nested-parameter tool with no output schema, the description supplies everything needed: scope, protected targets, non-obvious side effects, the preview/confirm protocol, the id source, and the batch cap. An agent can call this correctly and safely from the description alone.

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 description coverage is 100%, so the schema already documents target/kind/group/id/confirm/nodeIds/projectId, making the baseline 3. The description adds operational meaning the schema does not stress — that nodeIds must come from get_group and never be invented, that the same target and nodeIds must be reused on the confirming call, and the 25-node ceiling — though the nested target semantics themselves are left to the schema.

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?

The description opens with a specific verb and resource ("Delete nodes from one group") and immediately scopes it to the four group kinds (shot, story element, scene, art direction). It goes further by stating side effects (wires removed, @# tokens stripped from prompts/texts, images preserved in Library/Generation Center), which lets an agent distinguish this from sibling deletes like delete_entities or delete_shots without inspecting schemas.

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 delete when the user explicitly asks." It also prescribes a concrete two-step protocol — first call without confirm for a preview, show the user the list, ask once, then re-call with the same target and nodeIds plus confirm: true — and names the prerequisite source for nodeIds (get_group, never invent them) plus a hard limit of 25 per call. This is close to ideal routing guidance.

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.