Skip to main content
Glama

set_node_style

Customize an XMind node’s appearance by setting its importance, font, size, text and background colors, borders, shape, branch line, and alignment.

Instructions

设置节点样式:重要程度(极其重要/重要/删去/默认)、字体、字号(8/10/12/14/18/24/36/48/60)、文字颜色、加粗/斜体/删除线/下划线/大小写变换、背景色、边框色/线型/宽度、节点形状(矩形/圆角矩形/下划线/双下划线/圆形/椭圆形/菱形/平行四边形/跑道/切角矩形/六边形/竖胶囊)、连线颜色/线宽、对齐。传 None 表示不修改该项。颜色用 #RRGGBB、#RRGGBBAA 或「4E0D58 60%」透明度写法。

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_node_style"
  }
}

Input Schema

NameRequiredDescriptionDefault
shapeNo节点形状:矩形 / 圆角矩形 / 下划线 / 双下划线 / 圆形 / 椭圆形 / 菱形 / 平行四边形 / 跑道 / 切角矩形 / 六边形 / 竖胶囊
node_idYes要设置样式的节点 ID
auto_saveNo是否自动保存(默认 false)
file_pathYes.xmind 文件路径
font_sizeNo字号:8 / 10 / 12 / 14 / 18 / 24 / 36 / 48 / 60 或 16pt
font_colorNo文字颜色,如 #FF0000 或 4E0D58 60%
font_styleNo斜体:斜体 / 正常(或 italic / normal)
importanceNo重要程度:极其重要 / 重要 / 删去 / 默认
line_colorNo分支连线颜色,如 #FF6B6B
line_widthNo分支连线宽度:极细 / 细 / 中等 / 粗 / 极粗,或 2pt
text_alignNo对齐:左对齐 / 居中 / 右对齐 / 默认
font_familyNo字体族,如 Arial / 微软雅黑
font_weightNo加粗:加粗 / 正常(或 bold / normal)
border_colorNo边框色,如 #000000
border_widthNo边框宽度:极细 / 细 / 中等 / 粗 / 极粗,或 2pt
fill_patternNo填充样式:无 / 纯色 / 手绘 / 交叉线 / 细交叉线 / 影线 / 细影线
line_patternNo连线线型:实线 / 虚线 / 点线 / 点划线 / 无
border_patternNo边框线型:实线 / 虚线 / 点线 / 点划线 / 无
font_transformNo大小写:默认 / 全大写 / 全小写 / 首字母大写
font_decorationNo文字装饰:下划线 / 删除线 / 无,可叠加如「下划线+删除线」
background_colorNo背景色,如 #FFF3BF 或 4E0D58 60%

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=false and readOnlyHint=false, so the safety profile is covered. The description adds the None-means-no-change rule, which is real behavioral information not present in the annotations or schema. It omits other relevant behavior: whether styling is idempotent, whether invalid color/enum strings raise errors, and what auto_save actually triggers.

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

Conciseness3/5

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

The purpose is front-loaded in the first clause, which is good structure. However, most of the body re-lists enum values already documented at 100% coverage in the schema (font sizes, shape names, line patterns), so a substantial share of the text does not earn its place.

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 21-parameter mutation tool with no output schema and useful annotations, the description covers the full styling surface plus the skip-a-property rule and color formats, which is close to complete. What is missing is scope differentiation from the sibling style tools and any statement about failure modes or required file state, which is why it is not a 5.

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 would be 3, but the description adds two pieces of meaning the schema does not carry: the None sentinel for skipping a property, and the accepted color grammar including the 「4E0D58 60%」 percentage-transparency form. The long enumeration of shapes, sizes, and line styles largely restates schema descriptions, so it stops short of a 5.

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?

"设置节点样式" is a specific verb plus resource, and the description enumerates exactly which visual attributes are affected (importance, font, fill, border, shape, connector, alignment), so an agent can tell this modifies a single node's appearance. It does not, however, distinguish itself from the sibling style tools (set_branch_style, set_theme_style, set_sheet_layout), leaving the agent to infer scope from the name alone.

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?

The description supplies one genuinely useful usage rule: passing None leaves a property unchanged, which signals partial-update semantics. It gives no guidance on when to choose this over set_branch_style or set_theme_style, no prerequisites, and no note about what happens when an unsupported value is passed.

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