Skip to main content
Glama

analyze_style

Read-only

Audit an .xmind workbook's styling: report default styles per theme level, color, font, and shape usage counts, and optionally list each node's effective style.

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

Input Schema

NameRequiredDescriptionDefault
file_pathYes.xmind 文件路径
max_nodesNoinclude_node_styles 时最多列出多少个节点(默认 50)
sheet_indexNo工作表索引(默认 0)
include_node_stylesNo是否列出节点级有效样式(默认 false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the description needs only to add scope, and it does: outputs are scoped to the current sheet's theme hierarchy but aggregate statistics span the whole map, and node styles are opt-in. That scoping distinction is genuinely useful and not derivable from annotations or schema.

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?

A single compact sentence that front-loads the audit framing and then lists the output categories in a logical order. Nothing is redundant, though the dense enumeration of three output types in one clause makes it slightly harder to scan than a short bulleted structure.

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?

There is no output schema, so the description bears responsibility for describing return values, and it does so by naming the three categories of information produced. Combined with annotations covering the read-only safety profile and full schema coverage for parameters, an agent has enough to call this correctly; only edge cases like empty sheets are unaddressed.

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 four parameters are already documented in the schema, establishing a baseline of 3. The description only restates the include_node_styles option, adding no format or behavioral detail beyond it, and never mentions sheet_index or max_nodes.

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 names a specific action (style audit) and enumerates the outputs: theme-level default styles for the current sheet, whole-map color/font/shape usage statistics, and optionally per-node effective styles. This clearly separates it from the mutating siblings (set_node_style, apply_style_preset) which write styles rather than report them. It stops short of naming an alternative tool explicitly.

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?

Implicit guidance comes from the phrase '可选列出每个节点的有效样式' (optionally list each node's effective style), which hints that node-level output should only be requested when needed. There is no explicit when-to-use / when-not-to-use statement and no reference to which sibling to pick for related questions.

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