Skip to main content
Glama

import_markdown

Convert complete Markdown text into a new XMind file, preserving headings, lists, tables, code blocks, and quotes exactly as written without summarizing.

Instructions

把传入的 Markdown 文本逐行原样转成新的 XMind 文件:所有文字(标题、列表、表格、代码块、引用)都会保留,不做概括或精简。必须把完整原文传给 markdown 参数;如果 Markdown 在磁盘上,请改用 import_markdown_file。

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>",
      "markdown": "<markdown>"
    },
    "name": "import_markdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
markdownYesMarkdown 完整原文,禁止先概括或精简
file_pathYes.xmind 文件路径
sheet_titleNo工作表标题(可选,默认用第一个标题)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the schema marks this as a non-destructive write. The description adds meaningful context beyond that — line-by-line verbatim preservation with no summarization — which tells the agent the transformation is lossless and that content must not be trimmed. It does not say what happens when file_path already exists (overwrite vs. error) or whether the source text is transformed structurally into nodes, leaving a gap for a file-creating tool.

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?

Three short clauses, front-loaded with the core action, then the preservation guarantee, then the alternative-tool routing. Every sentence contributes a distinct piece of information with no filler.

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 three-parameter file-creation tool with full schema coverage and no output schema, the definition covers purpose, preservation semantics, and sibling routing adequately. The main omission is failure/overwrite behavior on an existing file_path and what the agent gets back (e.g., the created file path), which matters for a write tool.

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%, with markdown, file_path, and sheet_title all documented in the schema itself. The description reinforces the markdown parameter's constraint (complete original, no condensing) but largely restates what the schema already says and says nothing extra about file_path or sheet_title. Baseline 3 is appropriate when the schema carries the parameter burden.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: convert Markdown text verbatim into a new XMind file, and enumerates what is preserved (headings, lists, tables, code blocks, quotes). It also names the sibling import_markdown_file for the on-disk case, so the agent can distinguish the two without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit routing rule: pass the complete original text to markdown, and if the Markdown lives on disk use import_markdown_file instead. The precondition (full text, no pre-summarizing) is stated as a hard requirement rather than left to inference.

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