Skip to main content
Glama

batch_update_titles

Destructive

Batch replace XMind node titles by keyword or regular expression to rename many topics at once. Returns the modified nodes so changes are easy to verify.

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>",
      "find": "<find>",
      "replace": "<replace>"
    },
    "name": "batch_update_titles"
  }
}

Input Schema

NameRequiredDescriptionDefault
findYes要查找的文本或正则表达式
replaceYes替换为的文本
auto_saveNo是否自动保存(默认 false)
file_pathYes.xmind 文件路径
use_regexNo是否把 find 当作正则表达式(默认 false)

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?

The annotations already mark this tool as destructive and not read-only, so the main safety signal comes from structured data rather than from the description. The description adds the useful fact that the modified nodes are returned, but it omits the details most important for a destructive tool: whether every node in the file is in scope or only some subset, and whether auto_save=false means the change can be discarded or reverted.

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?

The description is a single front-loaded sentence with no filler, and it covers both the action and the return value. Because it is so terse, a sentence about the scope of the batch operation (the whole file versus the current selection) would have earned its place.

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 destructive batch mutation with no output schema, the description does not say enough. It does not state the matching scope, what happens to non-matching nodes, or whether titles that would become duplicates are handled. The annotations plus the exhaustive schema cover part of this, but the operational boundaries remain unstated.

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 coverage is 100%: find, replace, file_path, use_regex, and auto_save are each documented in the schema, including their defaults. The description's mention of 关键词或正则 restates the find and use_regex parameters without adding syntax details, escaping rules, or matching scope. That is the expected baseline score when the schema already carries the parameter documentation.

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: 按关键词或正则批量替换节点标题 (batch-replace node titles by keyword or regex). The word 批量 distinguishes it from the single-node update_node sibling, even though it does not name that sibling. It also states what is returned (the modified nodes).

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 word 批量 implies a choice between batch replacements and a single-node update, and the phrase 关键词或正则 hints at the form the input should take. However, the description never states when to use this tool rather than update_node or find_node, nor does it set any preconditions (such as the file must be open or must have been loaded); usage must therefore be inferred from context.

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