Skip to main content
Glama

Back Up Flash Device

flash_backup
Destructive

Archives the Unraid USB boot device over SSH into a user share—/boot/config by default or all of /boot—then verifies the tar.gz and prunes older backups.

Instructions

⚠ Archives the Unraid flash (USB boot) device over SSH into a user share: by default /boot/config only (settings, plugins, keys — a few hundred MB); full: true archives all of /boot (several GB, includes the OS images). Writes /mnt/user//flash-backups/flash-backup--.tar.gz, verifies it with tar -tzf, and reports size and entry count; keep: N prunes older archives in that folder beyond N and lists exactly what it removed. The archive CONTAINS your license key, API keys, passwords, and network config — it stays on your own array; never copy it off the server unencrypted. Requires confirm: true AND acknowledge_risk: true, plus SSH (UNRAID_SSH_*). Replaces the Unraid API's flash-backup mutation, which is an unimplemented stub.

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": {
      "share": "<share>"
    },
    "name": "flash_backup"
  }
}

Input Schema

NameRequiredDescriptionDefault
fullNo`true` archives all of /boot; omitted or `false` archives /boot/config only.
keepNoNewest archives to keep in the share's flash-backups folder, config and full combined; older ones are deleted. Omit to keep all.
shareYesExisting user share to write the archive into: the plain name from share_list, not a path.
confirmNoSet `true` only after the user approves this specific change; otherwise the tool refuses or prompts them.
response_formatNo`detailed` returns full JSON instead of readable text.concise
acknowledge_riskNoSet `true` only after the user accepts that the archive holds the license key, API keys, and passwords; needed on every call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.1.3
    • addedInput schema / properties / acknowledge_risk / description
      Added value: +"Set `true` only after the user accepts that the archive holds the license key, API keys, and passwords; needed on every call."
    • addedInput schema / properties / confirm / description
      Added value: +"Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them."
    • addedInput schema / properties / full / description
      Added value: +"`true` archives all of /boot; omitted or `false` archives /boot/config only."
    • addedInput schema / properties / keep / description
      Added value: +"Newest archives to keep in the share's flash-backups folder, config and full combined; older ones are deleted. Omit to keep all."
    • addedInput schema / properties / response_format / description
      Added value: +"`detailed` returns full JSON instead of readable text."
    • addedInput schema / properties / share / description
      Added value: +"Existing user share to write the archive into: the plain name from share_list, not a path."
  2. First observedv0.1.1

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations (destructive=true, non-idempotent): it discloses the exact output path pattern, that the archive is verified with `tar -tzf`, that size and entry count are reported, and that `keep` explicitly lists removed archives. It also warns that the archive contains the license key, API keys, passwords, and network config, and must not be copied off the server unencrypted — real consequences an agent must surface.

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?

Front-loaded with the warning marker and the core action, then defaults, then consequences, then preconditions — a sensible order. It is dense but every sentence carries information; the only mild cost is length for a single call.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, credentialed write operation with no output schema, it covers scope defaults, destination path, verification, reporting, retention, prerequisites, and the sensitive-data caveat. Nothing an agent needs in order to call this safely appears to be missing.

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?

With 100% schema coverage the baseline is 3, but the description adds scope semantics (`full` vs. config-only, several GB vs. a few hundred MB) and names the exact file produced, which the schema does not. Pruning behavior for `keep` is explained in the description rather than only in the schema.

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 and resource: "Archives the Unraid flash (USB boot) device over SSH into a user share," and pins down default vs. `full: true` scope immediately. It also positions itself against a non-sibling alternative (the Unraid API's stub flash-backup mutation), so an agent knows why this tool exists.

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 concrete operating conditions: default `/boot/config` scope, `full: true` for the whole boot device, `keep: N` for pruning, and mandates `confirm` plus `acknowledge_risk` along with `UNRAID_SSH_*` prerequisites. It does not name a sibling alternative for pruning or restoring, but the guidance is clear enough to select and prepare a call.

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