Skip to main content
Glama

import_markdown_file

Converts a Markdown file at a given path into a new XMind mind map while preserving headings, lists, tables, code blocks, and quotes exactly as written.

Instructions

直接读取磁盘上的 Markdown 文件并逐行原样转成新的 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>",
      "output_path": "<output_path>"
    },
    "name": "import_markdown_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYes要转换的 Markdown 文件路径(.md)
output_pathYes生成的 .xmind 文件路径
sheet_titleNo工作表标题(可选,默认用第一个标题)

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 declare readOnlyHint=false and destructiveHint=false, and the description is consistent with that by framing the operation as producing a new file. It adds real behavioral value beyond the annotations: verbatim preservation of headings, lists, tables, code blocks and quotes, and an explicit no-summarization guarantee that tells the agent what fidelity to expect.

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 dense sentence with the core action front-loaded, followed by the fidelity guarantee and the do-not-rewrite constraint. Every clause carries information; only the parenthetical enumeration of content types is close to expendable.

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 3-parameter conversion tool with full schema coverage and no output schema, the description covers input expectation, output artifact and content fidelity. The remaining gap is overwrite/error behavior when output_path already exists, which the annotations' destructiveHint=false does not fully resolve.

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%, so the schema already documents file_path, output_path and sheet_title, and the baseline of 3 applies. The description adds only a general 'just pass the file path' framing, which slightly undersells that output_path is also required, but it introduces no incorrect parameter semantics.

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?

States a concrete verb and resource: reads a Markdown file from disk and converts it line-by-line into a new XMind file, naming the content types preserved. The emphasis on 'directly reading from disk' implicitly separates it from the sibling import_markdown (content-based import), but no sibling is named explicitly.

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 model just needs to pass the file path' and the instruction not to rewrite content. There is no explicit when-to-use vs. when-not, and no comparison against import_markdown or export_markdown, so the agent must infer the selection criteria.

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