Skip to main content
Glama

spine_restore_backup

Restore a Spine JSON backup file from the backups/ directory to a specified target file. Confirmation required; dry run by default; current target is backed up before real restore.

Instructions

将 backups/ 中的指定备份恢复到目标 JSON 文件。高风险操作,必须 confirm:true;默认 dryRun:true;真实恢复前会先备份当前目标文件。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
backupPathYes工作区 backups/ 目录内的备份文件路径,例如 backups/skeleton-4.1.xxx.json。
targetFilePathYes工作区根目录内的 Spine JSON 文件路径。
dryRunNo
expectedHashNo可选目标文件当前 hash,用于防止覆盖意外变化。
confirmYes必须显式传 true 才允许执行 dryRun 或真实恢复。
Behavior4/5

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

With no annotations provided, the description carries full burden. It discloses high-risk nature, required confirm flag, default dryRun, and backup of current target before actual restore. Additional details like exact overwrite behavior or error conditions would improve transparency.

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?

The description is a single, efficient sentence that front-loads the main purpose and critical behavioral constraints. Every phrase earns its place: high risk, confirm requirement, dryRun default, and backup before restore.

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?

Given 5 parameters, no output schema, and no annotations, the description covers the main workflow, risk, defaults, and safety measure (backup). It does not detail error handling or expected return values, but for a restore tool, the core behavior is well-explained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 80% (missing dryRun description). The description compensates by stating dryRun defaults to true, and clarifies confirm must be true. This adds value beyond the schema, especially for the required confirm and default dryRun.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action (restore backup to target JSON file) and resource (backups/ directory and target file). It distinguishes from sibling tools like spine_list_backups (listing) and spine_validate_json (validating) by specifying it's a restore operation with high risk and default dry run.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage when restoring from a backup, with explicit notes that confirm must be true and dryRun defaults to true. It does not explicitly state when not to use it or provide alternative tools, but the context of sibling tools makes the purpose clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yb901104-wq/spine-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server