Skip to main content
Glama

add_label

Add a text label to a specified XMind node to categorize or annotate content in a mind map.

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

Input Schema

NameRequiredDescriptionDefault
labelYes标签文本
node_idYes节点 ID
auto_saveNo是否自动保存(默认 false)
file_pathYes.xmind 文件路径

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false, so the safety profile is covered structurally. The description adds nothing beyond that: it does not say what happens if the label already exists, whether the change is persisted without auto_save, or whether an unsaved file is modified. For a mutation tool the description should carry more of that burden.

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 short sentence with the verb-resource pair front-loaded and no filler. It is efficient rather than bloated, though the brevity comes at the cost of the guidance noted elsewhere.

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

Completeness2/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 that writes to a .xmind file, the description omits the file-path context, the auto-save implication, and any error conditions. The schema and annotations cover parameters and safety, but the description leaves the agent without enough behavioral context to call this confidently.

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% and all four parameters (label, node_id, file_path, auto_save) carry their own descriptions including the auto_save default of false. The description names neither the parameters nor the file type, so it adds no meaning beyond the schema; 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 states a clear verb and resource — 'add a label to a node' (给节点添加一个标签) — so an agent can identify the operation immediately. It does not distinguish this tool from adjacent siblings such as add_marker or add_boundary, which also attach metadata to a node.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention of prerequisites such as which file must be open or whether the node must exist, and no reference to alternatives like remove_label or add_marker. The agent must infer all routing decisions from the sibling names alone.

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