Skip to main content
Glama

delete_empty_nodes

Destructive

Removes all empty-titled regular nodes and their subtrees from an XMind file while preserving the root topic and summary or comment nodes.

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

Input Schema

NameRequiredDescriptionDefault
auto_saveNo是否自动保存(默认 false)
file_pathYes.xmind 文件路径

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, so the safety profile is known. The description adds genuinely new behavioral detail beyond the annotations: deletion cascades to entire subtrees and intentionally skips the root topic and summary/comment nodes, which materially changes what an agent expects to be destroyed. It stops short of stating irreversibility or whether counts are returned.

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?

A single dense sentence that front-loads the destructive scope and appends the exclusions. Every clause carries information: what is deleted, that subtrees go with it, and what is protected.

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 mutation tool with full schema coverage and annotations that already declare destructiveness, the description covers what is removed and what is preserved. It leaves out the result (e.g. how many nodes were deleted) and reversibility, minor gaps given the otherwise complete behavioral picture.

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 file_path and auto_save both documented in the schema, so the baseline is 3. The description adds no meaning beyond that, e.g. it does not say whether auto_save affects the destructive operation's persistence or what happens when it is false.

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 names a specific verb (删除) plus the exact resource and scope (所有空标题的普通节点,含其子树). The word 所有 clearly distinguishes this bulk operation from the single-node delete_node sibling, and the explicit skip list (根主题、概要/批注节点) further sharpens the scope.

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 usage condition is only implied by the scope phrase: an agent can infer this is for cleaning up empty-titled nodes. There is no explicit statement of when to prefer this over delete_node or merge_duplicate_nodes, and no prerequisites or warnings about running it on a file the user cares about.

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