Skip to main content
Glama

set_branch_style

Configure a node's outgoing branch connector in an XMind file by setting line type, endpoint style, width, color, and pattern. Use it to control how child branches appear visually.

Instructions

设置某个节点向外分支的连线样式:分支类型(圆角折线/折线/直线/曲线/圆弧/手绘/圆角手绘)、终点样式(圆点/三角形/菱形/双箭头等)、粗细(极细/细/中等/粗/极粗)、颜色、线型。

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": "set_branch_style"
  }
}

Input Schema

NameRequiredDescriptionDefault
node_idYes要设置分支样式的节点 ID
arrow_endNo终点样式:无 / 圆点 / 三角形 / 矛头 / 方形 / 菱形 / 鱼骨 / 双箭头 / 反三角 / 附着 / 钩形
auto_saveNo是否自动保存(默认 false)
file_pathYes.xmind 文件路径
line_typeNo分支类型:圆角折线 / 折线 / 直线 / 曲线 / 圆弧 / 手绘 / 圆角手绘
line_colorNo连线颜色,如 #FF6B6B 或 4E0D58 60%
line_widthNo线宽:极细 / 细 / 中等 / 粗 / 极粗,或 2pt
line_patternNo线型:实线 / 虚线 / 点线 / 点划线 / 无

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?

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false, so the safety profile is known. The description adds that the tool modifies outgoing branch line styles, but it does not say whether changes affect only the selected node's branches, how auto_save interacts, or what happens on invalid style values. With annotation coverage, 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?

The definition is a single front-loaded sentence that states the action and then lists the style categories. It repeats enum values already present in the schema, which is slightly inefficient, but the overall structure is compact and easy to scan.

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 write-style tool with 8 fully documented parameters, the description covers the purpose and style dimensions, and annotations carry the safety profile. It omits when to choose this over sibling style tools and any edge-case behavior, leaving a meaningful gap for an agent selecting among style setters.

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 every parameter is already documented with allowed values. The description groups the style parameters but adds no new syntax, constraints, or behavioral meaning beyond what the schema provides. 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?

States a specific verb and resource — setting the line style of a node's outward branches — and enumerates the style dimensions (branch type, endpoint style, thickness, color, line pattern). The scope clearly distinguishes it from a generic node-style tool, though no sibling is explicitly named.

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 when-to-use or when-not guidance, and no alternative tool is named (e.g., set_node_style for node styling). The agent must infer from the description alone that this applies to branch lines.

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