Skip to main content
Glama

analyze_file

Read-only

Inspect an XMind file to report node count, maximum depth, notes, images, markers, duplicate or empty titles, and special nodes for health checks and cleanup.

Instructions

对 XMind 文件做统计和体检:节点数、最大深度、备注/图片/标记统计、重复标题、空标题、特殊节点。

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

Input Schema

NameRequiredDescriptionDefault
file_pathYes.xmind 文件路径

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 safety profile is covered and the bar is lower. The description adds genuinely useful context beyond that: it is the only place that says the operation is an aggregate statistical scan and lists exactly which properties of the file are examined, which also serves as the de-facto return-content specification since no output schema exists. It does not say whether results are reported as counts only or with locations/identifiers, and leaves 特殊节点 undefined.

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?

One front-loaded sentence with the core action first and the enumerated metrics after, with no filler or repetition of the tool name. Density is appropriate for a reporting tool. The final item 特殊节点 is vague enough that it reads as a catch-all rather than a defined category.

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 low-complexity, single-parameter read-only tool with no output schema, the description carries the necessary burden by listing the metrics that will be returned, so an agent knows what to expect. What remains unspecified is the response shape (structured object vs. text summary) and whether large files incur notable processing cost. These are minor for a read-only analyzer.

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?

There is a single required parameter, file_path, and the input schema already documents it at 100% coverage as the .xmind file path. The description adds no syntax, path-resolution, or format constraints beyond that. With schema coverage this high, 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+resource pair (统计/体检 on XMind 文件) and then enumerates the concrete metrics computed: node count, max depth, note/image/marker tallies, duplicate titles, empty titles, special nodes. An agent can immediately tell this is a diagnostic/reporting tool rather than an editor, which separates it from mutation siblings like add_node or repair_file. It stops short of naming which sibling to use instead, so it is clear but not sibling-differentiated.

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 phrase 体检 (health check) implies the intended usage: inspecting a file before deciding whether to repair or restructure it, and the read-only nature is implicit. However, there is no explicit statement of when to choose this over analyze_style or repair_file, and no prerequisites or exclusions are given. Usage is inferable but left to the agent.

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