Skip to main content
Glama

ssh_backup_restore

Restore a backup to a remote server by specifying its backup ID. Overwrites databases or files with the backed-up data.

Instructions

Restores a previously created backup identified by backupId, reading its metadata to pick the engine. This is destructive and overwrites the target: PostgreSQL runs pg_restore with --clean --if-exists which DROPs existing objects, MongoDB runs mongorestore --drop, and MySQL pipes the dump into the live database replacing matching objects. Supports mysql, postgresql, mongodb, and files. Runs pre-restore and post-restore hooks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dbHostNoDatabase host (default: localhost)
dbPortNoDatabase port
dbUserNoDatabase user
serverYesServer name
backupIdYesBackup ID to restore
databaseNoTarget database name (for db restores)
backupDirNoBackup directory (default: /var/backups/ssh-manager)
dbPasswordNoDatabase password
targetPathNoTarget path for files restore (default: /)
Behavior5/5

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

With no annotations, the description fully discloses destructive behavior: overwriting target, dropping existing objects for PostgreSQL and MongoDB, replacing for MySQL, and supporting files. It also mentions pre/post hooks, providing full behavioral context.

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?

The description is a single paragraph of 4 sentences, efficient and front-loaded with the core action. Every sentence adds value, though slight reordering could improve scanability.

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 the multi-engine, destructive nature, the description covers engine behaviors and hooks. No output schema is present, so the return value is not described, but the main operational context is sufficient for a restore tool.

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% and each parameter already has a description. The tool description adds overall context but does not enhance individual parameter meaning significantly. Baseline 3 is appropriate.

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 tool restores a backup by ID, selects engine based on metadata, and distinguishes from sibling tools like ssh_backup_create and ssh_backup_list. The verb 'restores' and resource 'backup' are specific, and the engines are enumerated.

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 description implies usage when a backup ID is available, but does not explicitly state when to avoid this tool (e.g., for non-destructive operations) or contrast with alternatives like ssh_backup_create or ssh_backup_list. The context is clear but lacks exclusions.

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/bysonte/ssh-manager-mcp-server'

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