Skip to main content
Glama
bvisible

MCP SSH Manager

ssh_backup_restore

Restores a backup identified by ID, overwriting target databases or files. Supports PostgreSQL, MySQL, MongoDB, and files with pre/post execution hooks.

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
serverYesServer name
backupIdYesBackup ID to restore
databaseNoTarget database name (for db restores)
dbUserNoDatabase user
dbPasswordNoDatabase password
dbHostNoDatabase host (default: localhost)
dbPortNoDatabase port
targetPathNoTarget path for files restore (default: /)
backupDirNoBackup directory (default: /var/backups/ssh-manager)
Behavior5/5

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

With no annotations, the description fully discloses destructiveness, overwrite behavior, specific commands for each database type, and the existence of pre/post-restore hooks. There are no contradictions or missing critical behavioral details.

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 well-structured with multiple sentences that convey essential information without redundancy. It is front-loaded with purpose and then details behavior. Could be slightly more concise, but overall effective.

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 complexity (9 parameters, no output schema), the description covers purpose, behavior, supported engines, hooks, and parameter usage. It does not mention return value or error handling, but for a restore tool, this is acceptable.

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% with descriptions for all 9 parameters. The description adds value by explaining that database restore uses the 'database' parameter and files restore uses 'targetPath' with default '/', plus the 'backupDir' default. This enhances understanding beyond 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?

The description clearly states the tool restores a previously created backup by backupId, reading metadata to determine the engine. It specifies supported types (mysql, postgresql, mongodb, files) and mentions hooks, distinguishing it from sibling tools like ssh_backup_create and ssh_backup_list.

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 explicitly states the tool is destructive and overwrites the target, with specific behaviors per engine (e.g., pg_restore --clean --if-exists). It does not explicitly say when not to use it versus alternatives like ssh_db_import, but the context of backup restore is 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/bvisible/mcp-ssh-manager'

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