Skip to main content
Glama

restore_backup

Destructive

Restores a specified XMind backup to a target .xmind file and creates a backup of the current file before overwriting, so changes remain reversible.

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>",
      "backup_path": "<backup_path>"
    },
    "name": "restore_backup"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYes.xmind 文件路径
backup_pathYes要恢复的备份文件路径,可用 list_backups 获取

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 flag this as a non-readonly, destructive operation, and the description adds genuinely new behavioral context: it overwrites the target but first snapshots the current file, so the operation is reversible. That safety detail is exactly what an agent needs before invoking a destructive tool and is not derivable from the annotations.

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 that front-loads the action and puts the critical reversibility guarantee in a compact parenthetical. Every clause carries information; nothing is redundant.

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 two-parameter tool with full schema coverage and complete annotations, the description supplies the one thing structured fields can't convey: the automatic pre-overwrite backup. It could still note whether the target must be closed or whether the restored file must be a valid .xmind, but no output schema obligation remains.

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 both file_path (.xmind path) and backup_path (backup to restore, obtainable via list_backups) are already documented. The description restates their roles ('specified backup', 'target file') without adding format or validation 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 states a specific verb and resource: restoring a specified backup onto a target file. It clearly covers the effect, and the schema's reference to list_backups clarifies which tool produces the backup, though the description itself doesn't name or contrast any sibling.

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 usage situation (restoring a backup over a file) is implied rather than stated as explicit when-to-use guidance. No when-not conditions or alternative tools (e.g. list_backups for discovery) appear in the description text itself; that pointer lives only in the schema.

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