Skip to main content
Glama

remove_relationship

Destructive

Delete a relationship line from an XMind file by its ID. Use it to remove an unwanted connection between topics, with optional auto-save.

Instructions

按 ID 删除一条关系线。

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>",
      "relationship_id": "<relationship_id>"
    },
    "name": "remove_relationship"
  }
}

Input Schema

NameRequiredDescriptionDefault
auto_saveNo是否自动保存(默认 false)
file_pathYes.xmind 文件路径
relationship_idYes关系线 ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and openWorldHint=false, so the safety profile is known without the description. The description adds no behavioral context of its own: it doesn't say whether deletion is reversible, what happens if the ID is not found, or how auto_save interacts with the removal, so it essentially restates the name.

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?

One short sentence with no filler and the key operation (delete by ID) is front-loaded. It is efficiently written, though its brevity reflects under-specification rather than tightness of a rich definition.

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?

The tool is simple: 3 parameters, full schema coverage, destructive annotations, and no output schema, so most agent needs are met by structured fields. Still, for a destructive mutation the description should say what is lost and whether the change persists without auto_save, which it does not.

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 three parameters (file_path, relationship_id, auto_save) are already documented in the schema. The description only echoes the ID-based targeting and adds no format, default, or edge-case detail beyond what the schema provides, which is the baseline case.

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 and resource combination: it deletes a single relationship line (关系线) identified by ID. That is distinct from siblings such as remove_boundary, remove_label, and remove_marker, though the description itself never names those alternatives, so sibling differentiation comes from the tool name rather than the text.

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 such as remove_boundary or add_relationship, and no mention of prerequisites like the file needing to be open or the relationship ID needing to exist. The single sentence only says what the tool does.

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