Skip to main content
Glama

save_file

Destructive

Saves changes to an XMind mind map file, either overwriting the original file or writing to a new output path.

Instructions

保存对 XMind 文件的修改。可另存为新文件或覆盖原文件。示例: output_path='D:\docs\output.xmind'

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": "save_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYes当前 .xmind 文件路径
output_pathNo另存为的路径(可选,省略则覆盖原文件)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds the crucial operational detail the agent needs: omitting output_path overwrites the original file, while supplying it performs a save-as. That directly explains the consequence of the destructive flag, which is real added value; it still says nothing about failure modes like a nonexistent file_path or unwritable target.

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?

Three short sentences, front-loaded with the action and then the two outcomes, followed by a compact example. Nothing is padded, though the example path contributes less than an explicit note on the overwrite risk would.

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, no-output-schema tool with annotations present, the description covers the essential decision (overwrite vs. save-as) and shows the expected path shape. It is close to complete, with only minor gaps around error conditions and whether prior analysis of the file is required.

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 both parameters are already documented, and the description largely restates the overwrite/save-as semantics encoded in output_path's schema text. The concrete path example adds marginal help with format but no syntax or constraint detail beyond the schema, so this sits at the baseline.

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 ('save modifications to an XMind file') plus the two possible outcomes (save-as vs. overwrite), so the agent can identify the operation immediately. It does not explicitly distinguish itself from siblings such as create_file or the export_* tools, which keeps it from a 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?

Usage is implied by 'save modifications' and the two save modes are described, but there is no explicit when-to-use guidance, no statement about prerequisites (e.g. whether the file must first be opened/analyzed), and no named alternative for creating a brand-new file versus saving an edited one.

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