Skip to main content
Glama

set_theme_style

Sets theme-level default styles for XMind topic hierarchies, so font, shape, color, line, border, and alignment settings apply consistently to center, branch, subtopic, and free topics.

Instructions

设置主题级默认样式,影响整个层级的节点:中心主题 / 分支主题 / 第三层级主题 / 细分主题 / 自由主题。参数与 set_node_style 一致(font_color、font_size、shape、background_color 等,不含 importance)。

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

Input Schema

NameRequiredDescriptionDefault
levelNo主题层级:中心主题 / 分支主题 / 第三层级主题 / 细分主题 / 自由主题
shapeNo
auto_saveNo是否自动保存(默认 false)
file_pathYes.xmind 文件路径
font_sizeNo
font_colorNo
font_styleNo
line_colorNo
line_widthNo
text_alignNo
font_familyNo
font_weightNo
sheet_indexNo工作表索引,从 0 开始(默认 0)
border_colorNo
border_widthNo
fill_patternNo
line_patternNo
border_patternNo
font_transformNo
font_decorationNo
background_colorNo

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 mark this as non-read-only but non-destructive, and the description adds the important behavioral fact that the change applies to an entire hierarchy level, not a single node. It is silent on the questions that matter most for a bulk style mutation: whether existing nodes are restyled retroactively or only future ones, whether the write persists (auto_save defaults to false), and whether changes are reversible. That gap keeps it at a middling score.

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?

Two dense sentences with no filler, and the level-wide scope is front-loaded before the parameter note. It gives the key information first and does not waste words, though it could have used one short clause to state the retroactivity rule.

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 21-parameter bulk-mutation tool with no output schema and very low schema description coverage, the definition covers purpose and parameter reuse but not the consequences of the call. An agent still cannot tell whether the call restyles existing nodes, what the response contains, or how failures surface.

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 description coverage is only 19% across 21 parameters, so the description has to carry weight. It does partially compensate by naming representative styling parameters (font_color, font_size, shape, background_color) and by explicitly stating the list mirrors set_node_style except for the excluded importance. The remaining styling parameters (line_pattern, fill_pattern, border_color) still have no semantics in either the schema or the description.

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 target ("设置主题级默认样式") plus the exact scope: it affects all nodes at one hierarchy level, which is enumerated as 中心主题 / 分支主题 / 第三层级主题 / 细分主题 / 自由主题. It also implicitly distinguishes itself from the per-node sibling set_node_style. The gap is that the title suggests 'theme' while the tool really sets level defaults, and that distinction is only conveyed through the enumeration.

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 implied through contrast: the parameters match set_node_style, so an agent can infer this is the bulk/level-wide variant versus the single-node variant. However, the description never states when to prefer this over set_node_style, whether it overwrites styles already set on individual nodes, or what happens if the level argument is omitted (the schema requires only file_path). The missing prerequisites mean an agent must guess.

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