Skip to main content
Glama

backup_restore

Destructive

Restore Docker volumes from a backup archive, overwriting the app's running data. Refuses bind mounts in the archive, since agents can't safely name host paths to write to.

Instructions

Restore Docker volumes from a backup archive, overwriting the data the app is running on. Destructive: confirm intent before calling. Bind mounts declared by the archive are always refused here, because an agent has no way to name a host path it may write to

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": {
      "archive": "<archive>"
    },
    "name": "backup_restore"
  }
}

Input Schema

NameRequiredDescriptionDefault
serverNoRemote server name from config (optional, runs locally if omitted)
archiveYesBackup archive path to restore
serviceNoSpecific service to restore (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.18.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, but the description adds what is actually destroyed (live app data is overwritten) and a policy constraint that will cause the call to be refused in some cases — genuine context beyond the annotation. It does not say whether the app is stopped first or what a partial restore looks like, leaving some behavior undisclosed.

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?

Three sentences, front-loaded with the destructive action before the safety instruction. Every sentence earns its place — no restatement of the name and no filler.

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 3-parameter mutation tool with no output schema, the description covers the risky parts well. The remaining gap is outcome information — whether the app is restarted, whether restore is atomic, and how failures are reported — which an agent about to overwrite live data would benefit from.

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 all three parameters (server, archive, service) are documented in the schema itself. The description adds no per-parameter meaning such as archive format expectations or service-selection semantics, so the baseline of 3 applies.

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?

States a specific verb (restore) plus resource (Docker volumes from a backup archive) and its scope. It is immediately distinguishable from siblings like backup_create, backup_list, and backup_drill without opening any schema.

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?

Gives a clear precondition — confirm intent before calling — and states a hard exclusion: bind mounts declared by the archive are always refused, with the reason given. It does not explicitly route to a sibling (e.g. backup_drill for safe verification), so it stops short of full when-to-use guidance.

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