Skip to main content
Glama

duplicate_node

Copies a node and its entire subtree under a new parent in an XMind file, creating an independent copy with new node IDs.

Instructions

把节点(含其整棵子树)复制到新父节点下,生成新的 ID。

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

Input Schema

NameRequiredDescriptionDefault
node_idYes要复制的节点 ID
auto_saveNo是否自动保存(默认 false)
file_pathYes.xmind 文件路径
new_parent_idYes目标父节点 ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly=false and destructive=false; the description adds the genuinely useful fact that the whole subtree is copied and a fresh ID is assigned. It does not disclose whether the change is persisted to disk (the auto_save default is false) or what happens to the copied node's references, which for a file-mutating tool is a real 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 dense sentence with the subtree-copy scope and new-ID effect front-loaded and no wasted wording.

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 simple copy tool with a fully documented schema and no output schema, the description covers the essential semantics. The remaining ambiguity is whether the generated ID is returned or how persistence/auto_save interacts, which is a minor but real omission.

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 each of the four parameters is already documented in the schema, and the description adds no syntax, ID-format, or path-format detail beyond it. 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?

The description uses a concrete verb plus resource ('把节点...复制到新父节点下') and states the outcome ('生成新的 ID'), making clear this is a deep copy rather than a move. It does not name any sibling (e.g. move_node, merge_duplicate_nodes) so the distinction from those tools is left implicit.

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?

Usage is only implied: 'copy' suggests using this instead of move_node when you want a duplicate rather than a relocation. There is no explicit when-to-use or when-not-to-use statement, and no mention of a related alternative.

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