Skip to main content
Glama

add_relationship

Adds a relationship line connecting two specified nodes in a chosen XMind worksheet, with an optional label, to show links between ideas.

Instructions

在指定工作表中添加一条关系线(relationship),连接两个任意节点。

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>",
      "start_id": "<start_id>",
      "end_id": "<end_id>"
    },
    "name": "add_relationship"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNo关系线文字(可选)
end_idYes终点节点 ID
start_idYes起点节点 ID
auto_saveNo是否自动保存(默认 false)
file_pathYes.xmind 文件路径
sheet_indexNo工作表索引(默认 0)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.2/5.0
Behavior3/5

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

The annotations already declare that this is a non-read-only, non-destructive operation confined to the file. The description adds that the relationship is written into a chosen sheet, but it says nothing about persistence (auto_save defaults to false), what happens if the IDs don't exist, or whether relationships are visible across sheets. With annotations carrying the safety profile, this is adequate but not rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single front-loaded sentence with no wasted words. It is arguably too terse for a 6-parameter mutation tool, but nothing in it is padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple mutation tool with full annotation and schema coverage, the description covers the core action. It omits failure conditions, save behavior, and cross-sheet semantics that an agent would benefit from knowing before invoking it.

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 every parameter, including title, auto_save, and sheet_index, is already documented in the schema. The description only restates the endpoint and sheet concepts without adding format or constraint detail, so the baseline 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?

The description gives a specific verb and resource ("添加一条关系线") and scopes it to a designated sheet, and it clarifies that both endpoints can be arbitrary nodes. It doesn't explicitly distinguish itself from sibling tools such as add_boundary or add_label, so it stays at 4 rather than 5.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus alternatives, no prerequisites (such as node IDs already existing in the file), and no exclusions. The only hint is implicit: the tool needs two nodes to connect.

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