Skip to main content
Glama

add_image

Inserts a local image into a specified XMind node and updates the .xmind package references so the image displays correctly; supports PNG, JPG, GIF, BMP, and WebP.

Instructions

给节点插入一张本地图片(复制进 xmind 包并更新引用,支持 png/jpg/gif/bmp/webp)。

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>",
      "image_path": "<image_path>"
    },
    "name": "add_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
node_idYes要插入图片的节点 ID
auto_saveNo是否自动保存(默认 false)
file_pathYes.xmind 文件路径
image_pathYes本地图片的绝对路径

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=false, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful context beyond them: the image is copied into the xmind package rather than linked, and references are updated, which tells the agent the file is rewritten and grows in size. It stops short of describing failure modes or the effect of auto_save=false.

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?

A single tight sentence with the action front-loaded, followed by the important side effect and the format constraint. No redundant or filler wording.

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 mutation tool with annotations present, fully documented parameters and no output schema, the description covers the essentials: what is inserted, where it goes, and what side effect occurs on the file. Missing only edge-case behavior such as overwriting an existing image or what auto_save does on failure.

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%, so all four parameters (node_id, file_path, image_path, auto_save) are already documented in the schema. The description's contribution is the supported-format list constraining image_path, which is a small addition; it says nothing about auto_save semantics or path expectations beyond 'local'.

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 verb and resource ('给节点插入一张本地图片') and adds scope detail: the image is copied into the xmind package and references are updated, with supported formats listed. This clearly separates it from read-side siblings like get_image and list_images, though 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: an agent can infer this is the tool for embedding a picture into an existing node of a .xmind file. There is no explicit when-to-use, when-not-to-use, or prerequisite guidance (e.g. whether the file must exist first, or what happens if the node already has an image).

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