Skip to main content
Glama

delete_node

Destructive

Permanently delete a node from a project. Its dependency edges and agent writeback history are removed with it, and the build order is recalculated. Irreversible — use only for junk the user confirms removing (placeholders, test nodes, duplicates). To park real work instead of deleting it, flag_blocker it or change its status in the canvas.

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": {
      "project_id": "<project_id>",
      "node_id": "<node_id>"
    },
    "name": "delete_node"
  }
}

Input Schema

NameRequiredDescriptionDefault
node_idYesThe node ID to delete. Check it with get_node first.
project_idYesThe project ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, but the description adds real substance on top: which associated data is destroyed (dependency edges, agent writeback history), the side effect of build-order recalculation, and an explicit irreversibility warning. This is exactly the extra context a destructive tool needs beyond its hints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, each earning its place: what is deleted and its side effects, the irreversibility/realm-of-use constraint, and the alternative path. The destructive warning is front-loaded where an agent will read it first.

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 two-parameter destructive mutation with no output schema, the description covers consequences, reversibility, permission/safety framing, and better alternatives. Nothing needed to invoke or avoid it safely 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% for both UUID parameters, and the schema itself already advises checking with get_node first. The description adds no format, validation, or identification guidance beyond that, so the baseline of 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?

States a specific verb and resource ('Permanently delete a node from a project') and immediately scopes it against the sibling that handles the other common case ('flag_blocker it or change its status'). An agent can distinguish this from update_node or flag_blocker 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 inclusion rule ('use only for junk the user confirms removing (placeholders, test nodes, duplicates)') and named alternatives for the case where the user wants to preserve the work rather than remove it. Both when-to-use and when-not-to-use are covered.

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.