Skip to main content
Glama

get_image

Read-only

Read an image embedded in a specific XMind node and return it as a picture so multimodal models can view diagrams, screenshots, or handwriting, with the long side capped at 1024 px by default.

Instructions

读取节点的图片本身并作为图片返回,多模态模型可直接看图(图表、截图、手写内容都能理解)。默认把长边压到 1024 并转 JPEG,控制 token 成本。

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>",
      "node_id": "<node_id>"
    },
    "name": "get_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
node_idYes包含图片的节点 ID
max_sideNo长边像素上限(默认 1024)
file_pathYes.xmind 文件路径

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4/5.0
Behavior4/5

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

Beyond the readOnlyHint/openWorldHint annotations, the description discloses a non-obvious output transformation: long side is downscaled to 1024 and re-encoded as JPEG by default, with token cost as the rationale. That materially affects how an agent interprets returned image quality, though failure behavior (e.g. node with no image) is unstated.

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 tight sentences: purpose and return format first, then default compression behavior and its rationale. No filler, no repetition, and the most decision-relevant information is front-loaded.

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 read tool with full schema coverage and no output schema, the description covers purpose, return shape, and default transformation adequately. Only edge cases such as nodes lacking images are left unaddressed.

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 file_path, node_id, and max_side are already documented in the schema. The description only restates the 1024 default for max_side and its cost rationale, adding no new semantics for node_id or file_path, so the baseline of 3 applies.

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?

A concrete verb plus resource: it reads a node's image and returns it as an actual image, explicitly contrasted with metadata ('图片本身'). It is clear what an agent gets back, though it never names sibling tools such as list_images or get_preview to sharpen the boundary.

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

Usage Guidelines4/5

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

It gives a clear condition for use: multimodal models that need to visually interpret charts, screenshots, or handwriting should call this rather than rely on text. It does not state when NOT to use it or point to an alternative for metadata-only needs, so it falls short of a 5.

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