Skip to main content
Glama

delete_node

Destructive

Delete a node and all its child nodes from an XMind file, while protecting root topics. Provide the file path and node ID to remove the branch.

Instructions

删除节点及其所有子节点。不能删除根主题。

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

Input Schema

NameRequiredDescriptionDefault
node_idYes要删除的节点 ID
auto_saveNo是否自动保存(默认 false)
file_pathYes.xmind 文件路径

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is covered; the description goes further and discloses the blast radius — all descendant nodes are destroyed along with the target — which is exactly the detail an agent cannot get from the annotations. It stops short of saying whether deletion is reversible or how auto_save affects persistence, but the cascade disclosure is the high-value addition.

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?

Two short sentences, zero filler: the action and its cascade scope come first, the blocking constraint second. Nothing is repeated from the schema or annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive three-parameter tool whose schema is fully documented and whose annotations cover the write/destructive profile, the description covers the two things that matter: what gets destroyed beyond the target and which node is off-limits. Reversibility and the effect of auto_save on a cascading delete are the remaining gaps.

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%, with node_id, file_path, and auto_save all documented in the schema including the default for auto_save. The description adds no meaning beyond that (e.g., whether node_id accepts nested paths or how auto_save interacts with a cascading delete), so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("删除节点") and immediately scopes it with "及其所有子节点", so the agent knows the deletion cascades. It does not distinguish itself by name from siblings such as delete_empty_nodes, though the cascade scope plus the root-topic restriction implicitly separates the two cases.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description supplies one explicit when-not condition ("不能删除根主题"), which is useful routing information. It never says when to prefer this tool over delete_empty_nodes or move_node, nor what to do with a node's children instead of deleting them, leaving selection largely inferred from the tool name.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.