Skip to main content
Glama

list_attachments

Read-only

Lists attachments and images in an XMind file and flags each as referenced by a node or unused, helping users audit and clean up map resources.

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

Input Schema

NameRequiredDescriptionDefault
file_pathYes.xmind 文件路径

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?

The annotations already cover the safety profile (readOnlyHint=true, openWorldHint=false), and the description adds a real behavioral fact beyond them: the output classifies each resource as referenced or unreferenced by nodes. It says nothing about output ordering, path formats, or how large packs are handled, which keeps it short of a 5.

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?

A single sentence with the scope front-loaded and the referenced/unreferenced split placed where it matters most. There is no redundant restatement of the tool name or filler text.

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 one-parameter read-only listing tool with no output schema, the description conveys what the tool returns at a conceptual level and what the key annotation means. Minor gaps remain around whether resources are reported by path or by name and whether any filtering is applied.

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 only one parameter, file_path, and the schema already documents it at 100% coverage ('.xmind 文件路径'). The description adds no further meaning about accepted path forms or error behavior, 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 in a specific scope ('列出 xmind 包内的附件/图片资源') and adds the distinguishing detail that results are annotated as node-referenced or unreferenced. It does not, however, explicitly separate this tool from the sibling list_images, whose scope overlaps with the '图片资源' mentioned here.

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: flagging unreferenced assets suggests a natural pairing with remove_unused_attachments, but the description never says when to call this tool instead of list_images or when cleanup workflows should start here. An agent can infer the intent but is given no explicit routing condition.

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