Skip to main content
Glama

get_preview

Read-only

Returns a full mind map preview so models can inspect overall layout and colors, using the XMind embedded thumbnail when available or rendering an approximation otherwise.

Instructions

返回整图预览,让模型先看一眼整体版式和配色。优先用 XMind 保存时生成的缩略图(最接近软件里的真实效果);没有缩略图时自动用 matplotlib 自绘一张近似图。

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

Input Schema

NameRequiredDescriptionDefault
sheetNo要自绘的工作表索引,从 0 开始(默认 0;缩略图模式下忽略)
sourceNoauto=有缩略图用缩略图、没有就自绘(默认);embedded=只要 XMind 缩略图;render=总是自绘
max_sideNo长边像素上限(默认 1024)
file_pathYes.xmind 文件路径

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description adds real behaviour beyond that: an automatic fallback chain, an explicit fidelity caveat (thumbnail is closest to the in-app result, the render is only approximate), and the preference order between them. It stops short of describing return format or cost/latency of the matplotlib path, but the added disclosure is substantive.

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 with no filler: purpose and usage hint first, then the rendering-priority and fallback rule. Every clause carries information an agent would act on.

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 read-only preview tool with no output schema, the definition covers what is produced (a whole-image preview), how it is produced, and the fidelity trade-off of each path. Only marginal items like the returned image form or failure behaviour when the file is unreadable are left 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 description coverage is 100%, including a fully documented source enum, so the schema does the heavy lifting and the baseline is 3. The description reinforces the auto/embedded/render narrative but adds no syntax, units, or edge-case meaning beyond what the schema already states.

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 specific action and resource: return a whole-image preview of the file so the model can inspect overall layout and colour scheme. It also names the two rendering paths (XMind-embedded thumbnail vs. matplotlib re-render). Sibling tools such as get_image or export_svg are not named or contrasted, so the distinction has to be inferred.

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 the intended use case: a quick orientation pass before finer-grained work. There is no statement of when not to use it and no named alternative for per-node inspection or vector export, so the agent must guess the boundary.

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