Skip to main content
Glama

remove_unused_attachments

Destructive

Finds unused attachments and images in an XMind file, then removes them when saving to reduce file size.

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

Input Schema

NameRequiredDescriptionDefault
auto_saveNo是否自动保存(默认 false)
file_pathYes.xmind 文件路径

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true, and the description adds a genuinely non-obvious detail: removal happens at save time rather than immediately, which ties to the auto_save parameter. However, for a destructive operation it says nothing about irreversibility, backup needs, or whether referenced content is untouched.

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?

It is one compact sentence with no filler, and the core action is front-loaded. The only weakness is that multiple ideas, finding, removing, and reducing size, are compressed into a single clause without much structure.

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?

Given that this is a destructive tool with no output schema, the definition covers the what and the timing but omits the return value, such as how many attachments were removed, and any safety caveat. It is adequate but not complete for an irreversible operation.

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 both file_path and auto_save are already documented, which sets the baseline at 3. The phrase '保存时移除' (removed on save) loosely links to auto_save but does not explain the consequence of auto_save=true versus false.

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 uses a specific verb and resource: it finds attachments/images not referenced by any node and removes them on save to shrink the file. This clearly distinguishes it from the read-only sibling list_attachments, although it does not name an alternative.

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 intended goal, reducing file size, implies when to use the tool, but the description never states prerequisites, exclusions, or alternatives. Nothing warns the agent that this is only appropriate when the user wants cleanup rather than inspection.

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