Skip to main content
Glama

add_marker

Add marker icons such as priority, task progress, smiley, flag, or star to a specific XMind node using its file path and node ID, with optional auto-save.

Instructions

给节点添加标记图标。常用:priority-1~9(优先级)、task-start/task-oct/task-quarter/task-half/task-3q/task-done/task-pause(任务进度)、smiley-、flag-、star-*。

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>",
      "marker_id": "<marker_id>"
    },
    "name": "add_marker"
  }
}

Input Schema

NameRequiredDescriptionDefault
node_idYes要添加标记的节点 ID
auto_saveNo是否自动保存(默认 false)
file_pathYes.xmind 文件路径
marker_idYes标记 ID,如 priority-1、task-done

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.7/5.0
Behavior3/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 mutation profile is covered. The description adds nothing beyond that about behavior beyond the marker catalog — notably it does not say whether an existing marker on the node is replaced or coexists, nor whether the change persists without auto_save being enabled. Given the annotation coverage, this is an acceptable but not rich disclosure.

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 compact clauses: the action first, then the useful ID catalog. Every element earns its place by compensating for the absence of an enum on marker_id, and there is no filler or restatement of the tool name.

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 4-parameter, fully documented, annotated tool with no output schema, the description covers purpose and the hardest part (valid marker IDs). The remaining gap is what happens on an invalid or conflicting marker and the persistence role of auto_save, which an agent would want before calling.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description genuinely extends the schema's terse '如 priority-1、task-done' example into a categorized catalog covering task progress, smiley, flag, and star families. This meaningfully reduces guesswork for a free-form string parameter with no enum constraint. It still says nothing about auto_save semantics beyond what the schema 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?

The description states a specific verb+resource: 给节点添加标记图标 (add a marker icon to a node). It goes further by enumerating concrete marker families (priority-*, task-*, smiley-*, flag-*, star-*), so an agent knows exactly what kind of value qualifies. It does not explicitly contrast with remove_marker or add_label, so it stops short of a 5.

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 '常用' (commonly used) marker taxonomy, which tells the agent which IDs are typical but not when to prefer this tool over remove_marker or add_label. There is no explicit when-to-use, when-not-to-use, or prerequisite statement.

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