Skip to main content
Glama

set_sheet_layout

Switch the layout of a specified worksheet in an XMind file—e.g., mind map, logic chart, org chart, timeline, fishbone, matrix, or tree table—and optionally auto-save changes.

Instructions

切换工作表的布局结构,支持中文名:思维导图 / 逻辑图 / 括号图 / 组织结构图 / 树形图 / 时间轴 / 鱼骨图 / 矩阵图 / 树型表格,也支持 XMind 内部 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>"
    },
    "name": "set_sheet_layout"
  }
}

Input Schema

NameRequiredDescriptionDefault
layoutNo布局结构(默认 思维导图)
auto_saveNo是否自动保存(默认 false)
file_pathYes.xmind 文件路径
sheet_indexNo工作表索引,从 0 开始(默认 0)

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 readOnlyHint=false, destructiveHint=false and openWorldHint=false, consistent with 'switch' being a local mutation. The description adds that Chinese display names and XMind internal IDs are both accepted, which is useful behavioral context, but says nothing about whether existing per-node overrides are lost or how auto_save interacts with the change.

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 front-loaded sentence that leads with the action and then supplies the accepted values; no filler. The value enumeration is long but each item is load-bearing.

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 four-parameter mutation with no output schema and only safety annotations, the description covers the hardest parameter (layout values) well but leaves auto_save and sheet_index behavior entirely to the schema and says nothing about failure modes. Adequate, with visible gaps.

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 baseline would be 3, but the schema declares no enum for 'layout' while the description enumerates nine valid Chinese names plus internal-ID support. That is genuine meaning added beyond the schema, though it still does not say whether matching is case-sensitive or what happens on an unrecognized value.

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 gives a specific verb (切换/set) and resource (工作表布局结构), so an agent can tell it changes the sheet's layout rather than node or theme styling. It does not explicitly contrast itself with styling siblings such as set_theme_style or set_branch_style, but the resource is distinct enough to disambiguate.

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 only implied by the verb and the list of layout names; there is no statement of when to choose this over stylistic siblings or what preconditions apply. An agent can infer the context but must reason it out rather than being told.

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