Skip to main content
Glama

merge_duplicate_nodes

Destructive

Merge sibling XMind nodes with identical titles by keeping the first node, combining the duplicate nodes' children into it, and deleting the extra 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": "merge_duplicate_nodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
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 flag destructiveHint=true and readOnlyHint=false, but the description adds real substance beyond them: it explains which node survives, where the orphaned children go, and that the duplicates are removed afterward. That is exactly the collateral-damage context an agent needs before invoking a destructive edit. It does not discuss auto_save behavior or persistence to disk, which is the remaining gap.

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 compact sentence that leads with the action and then the mechanism, with no filler or repetition. Every clause carries information an agent needs.

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 two-parameter destructive tool with no output schema, the description conveys the operation's scope and its data-movement consequences clearly. It would be stronger if it said what the caller gets back (counts of merged nodes) or how a mixed-children case is ordered, but nothing essential for correct invocation 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%, so file_path and auto_save are already documented in the schema. The description adds no extra meaning about either parameter — nothing on what auto_save implies for the merge result or on path constraints — so the baseline of 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 (合并/merge) plus the exact resource and scope: sibling nodes sharing an identical title. The mechanism is spelled out — keep the first node, fold the others' children into it, then delete them — so an agent can tell this apart from a plain delete or duplicate operation. It stops short of naming a sibling alternative explicitly, which keeps it at 4 rather than 5.

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 precondition for the operation (sibling nodes with the same title) is embedded in the description, which implies when the tool applies. There is no explicit when-to-use vs. when-not, no mention of related tools such as duplicate_node or delete_empty_nodes, and no warning about irreversible data loss beyond what the merge rule implies.

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