Skip to main content
Glama

add_nodes

Batch add multiple titled child nodes under a specified parent node in an XMind file, with optional auto-save.

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>",
      "parent_id": "<parent_id>",
      "titles": "<titles>"
    },
    "name": "add_nodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
titlesYes要添加的子节点标题列表
auto_saveNo是否自动保存(默认 false)
file_pathYes.xmind 文件路径
parent_idYes父节点 ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare a non-read-only, non-destructive, closed-world write, so the safety profile is covered. The description adds the batch semantics and parent scoping but says nothing about whether/where changes are persisted, what happens on duplicate or empty titles, or whether node IDs are returned — meaningful gaps for a mutation tool with no output schema.

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

Conciseness4/5

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

A single front-loaded sentence with the action and the batch scope stated first; nothing is redundant. It is efficient but so terse that it borders on under-specification rather than achieving conciseness through completeness.

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

Completeness3/5

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

For a four-parameter mutation tool with full schema coverage and annotations declaring its write nature, the essentials are present. Still missing is anything about persistence ties to auto_save, return payload (e.g., created node IDs), or failure behavior, which an agent would want before batch-writing to a file.

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 all four parameters (titles, auto_save, file_path, parent_id) are already documented, and auto_save's default is stated in the schema. The description contributes no additional meaning such as ordering guarantees for titles, ID format for parent_id, or save behavior, 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?

The description states a specific verb and resource in '批量添加多个子节点' (batch-add multiple child nodes) and scopes it to '指定父节点' (a specified parent). The batch framing implicitly separates it from the singular add_node sibling, though it never names it.

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 by the word '批量' — an agent can infer this is the tool for adding many titles at once rather than one. There is no explicit when-to-use, when-not-to-use, or reference to add_node as the alternative for single insertions.

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