Skip to main content
Glama

Backup

backup
Read-only

Copy host configurations into the Mac's server state folder, not the project repo, using RouterOS/OpenWrt exports or Linux, macOS, Synology, and Windows paths; return paths, sizes, and SHA-256 hashes.

Instructions

Pull a copy of hosts' configuration into the server's state folder on the Mac (never the project repo): RouterOS /export terse, OpenWrt sysupgrade -b plus uci export, and on Linux, macOS, Synology and Windows the paths you list (a tar.gz, or a zip with registry exports). Changes nothing and never asks; returns where each file went, its size and sha256, never its contents. Never read a backup back into the chat.

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": {
      "hosts": "<hosts>"
    },
    "name": "backup"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostsYeshost, group or pattern
labelNooptional tag for the folder name, e.g. before-upgrade
pathsNoabsolute paths: /etc/x, C:\x or HKLM:\SOFTWARE\x (needed for Linux, macOS, Synology, Windows; ignored for routers)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.2/5.0
Behavior4/5

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

Beyond readOnlyHint/openWorldHint it discloses that the tool is non-interactive ('never asks'), that output lands in a state folder rather than the repo, and exactly what is returned (path, size, sha256, never contents) plus a safety rule about not echoing backups into chat. It does not explain why idempotentHint is false — whether repeat runs overwrite the folder, create a new one, or fail — which is the one behavioral fact an agent might need.

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 action and destination, then platform detail, then behavior and the guardrail. Every clause carries information, but the single dense sentence stacked with colons and parentheticals takes effort to parse and could be split for faster scanning.

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?

With no output schema, the description covers the return payload (path, size, sha256, no contents), storage location, platform-specific capture mechanics, and a misuse warning. For a 3-parameter read-only tool, an agent has everything needed to call it correctly.

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 coverage is 100%, so baseline is 3, but the description adds real meaning: 'paths' is ignored for routers (since RouterOS/OpenWrt capture is automatic), and the shape of what those paths produce differs by platform (tar.gz vs zip with registry exports). That is more than the schema says.

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 ('Pull a copy of hosts' configuration'), names the exact destination (server state folder on the Mac, never the project repo), and enumerates the per-platform capture method (RouterOS /export terse, OpenWrt sysupgrade -b + uci export, tar.gz/zip with registry exports elsewhere). An agent immediately knows what this does and how, without opening a schema.

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?

Usage is implied rather than stated: 'Changes nothing and never asks' plus the example label 'before-upgrade' signal a pre-change snapshot. No sibling is named (apply, plan, playbook are the obvious ones to distinguish from), and there is no explicit when-not-to-use clause beyond the closing warning about reading backups into chat.

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

Deploy Server

Other Tools