Skip to main content
Glama

read_structure

Read-only

Reads an XMind file's node tree and returns hierarchical text with node IDs, with depth and node limits to keep large maps from overflowing context.

Instructions

读取 XMind 文件的节点树结构,返回带层级和节点 ID 的文本。支持 max_depth/max_nodes 防止大文件撑爆上下文。

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

Input Schema

NameRequiredDescriptionDefault
cleanNo是否去掉 📷/📝/🔖 等内部标记(默认 false)
file_pathYes.xmind 文件路径
max_depthNo只输出到该层级(可选,根主题为 L0)
max_nodesNo最多输出多少个节点,超出截断(可选)
include_idsNo是否在每行后输出节点 ID(默认 true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.8/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 safety is covered. The description adds real behavioral detail beyond that: output is text with hierarchy and node IDs, and exceeding max_nodes truncates the output, which matters when the agent interprets results. It does not cover error behavior or how much of a very deep tree is lost to truncation.

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

Conciseness5/5

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

Two sentences, front-loaded with what is read and what comes back, then the safeguard parameters. No filler wording.

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, and the description compensates by describing the return value (hierarchy plus node IDs). Given a fully documented read-only schema and the truncation disclosure, an agent has enough to call it correctly; only error and edge-case behavior is missing.

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 coverage is 100%, so all five parameters are already documented in the schema, including clean, max_depth (L0 is the root), max_nodes truncation and include_ids. The description reinforces the purpose of max_depth and max_nodes (protecting context), but adds no syntax or format detail beyond the schema, so the baseline of 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?

The description gives a specific verb and resource, '读取 XMind 文件的节点树结构' (read the node tree of an XMind file), and states the return format: text with hierarchy and node IDs. It does not distinguish itself from siblings such as get_node, find_node or read_all, leaving the agent to infer that this reads the whole tree rather than a single node.

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: read a file's overall structure, and use max_depth or max_nodes to avoid blowing up the context on large files. There is no explicit guidance about when to use this tool instead of get_node or find_node, and no statement about prerequisites such as the file needing to exist.

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