Skip to main content
Glama

create_file

Destructive

Create a new XMind file from scratch by specifying its path, root topic title, and optional nested topics and sheet title.

Instructions

从零新建一个 XMind 文件。topics 为嵌套结构:[{"title": "...", "notes": "...", "children": [...]}]。

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>",
      "root_title": "<root_title>"
    },
    "name": "create_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
topicsNo根主题下的子节点(可选)
file_pathYes.xmind 文件路径
root_titleYes根主题标题
sheet_titleNo工作表标题(可选,默认 画布 1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and openWorldHint=false, so safety framing is partly covered. The description adds real value by spelling out the nested topics shape, but it never says what happens if the target path already exists — a critical omission for a tool annotated destructive, where an agent cannot tell whether an existing file is silently overwritten.

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?

Two sentences, front-loaded with the action and followed immediately by the one non-obvious parameter format. No filler or repetition of schema-documented fields.

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 four-parameter creation tool with full schema descriptions and no output schema, the definition covers purpose and the tricky nested parameter adequately. The remaining gap is the missing overwrite/existing-file behavior, which matters given the destructive annotation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description goes beyond the schema by showing the concrete nested topics payload [{"title", "notes", "children"}], which the schema only represents as a generic array of objects. It does not clarify the recursion depth semantics or the optional sheet_title behavior, so it is not a 5.

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?

"从零新建一个 XMind 文件" gives a specific verb (新建/create) and resource (XMind 文件), and the phrase "从零" implicitly separates it from sibling import/save tools such as import_markdown_file or save_file. It stops short of naming any sibling explicitly, which keeps it at 4 rather than 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?

The phrase "从零" implies this is for starting a brand-new file rather than importing or modifying an existing one, which is useful implied routing. However, there is no explicit statement of when to prefer this over import_markdown_file or save_file, and no prerequisites such as whether file_path may already exist.

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