Skip to main content
Glama

backup-database

Destructive

Run a full, differential, or log backup on a specified database host, with optional dry-run planning and timeout control.

Instructions

dbabrain common.cli backup-database: One backup run on a host. Changes or removes something. A command on the emergency-operations list takes confirm: "yes" and a reason in its request, as on the command line. Request fields (pass them as request):

  • db_type (required): The engine.

  • host: The host.

  • label: What to call it.

  • level: full | diff | log.

  • script: The engine script.

  • script_path: Or its path.

  • env: Values the script reads.

  • server_metadata: Refused since 0.23.0 - the export resolves its instance from the inventory, and backup-database reads no configuration. Run sqlserver-export-instance after the backup.

  • timeout: How long it may run.

  • dry_run: Plan only: change nothing.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "backup-database"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

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 and openWorldHint=true, so the mutation risk is known; the description still adds substantial context beyond that, notably the confirm/reason authorization requirement, the dry_run plan-only mode, the timeout bound, and the server_metadata deprecation with its workaround. It does not say whether a running backup can be interrupted or how concurrency is handled, but the added behavioral detail is well above the annotation baseline.

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-loads the one-line purpose before the field list, and the bulleted field enumeration is scannable with no filler. The sentence 'Changes or removes something' is a slightly vague framing for a backup operation and is the only marginally wasteful line.

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?

With an output schema present, return values need not be described, and the description covers request fields, authorization, deprecation behavior, and the follow-up step. It leaves unaddressed whether the call blocks until completion and what the difference between full/diff/log means operationally, minor gaps for a backup tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and the single `request` parameter is an unconstrained free-form object, so the description carries the entire burden — and it does, enumerating db_type (marked required), host, label, level (with enum values full | diff | log), script, script_path, env, timeout, and dry_run. It also explains the non-obvious refusal of server_metadata since 0.23.0 and the required follow-up call.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb+resource ('backup-database: One backup run on a host') and immediately discloses that it mutates state ('Changes or removes something'). It is clearly distinguishable from siblings like backup-stop, list-backup-files, and pack-backup by naming the operation itself, though it does not explicitly contrast itself against those siblings.

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 real operational prerequisites: the tool is on the emergency-operations list, so the request must carry confirm: "yes" and a reason, and it tells the agent to run sqlserver-export-instance after the backup. No explicit when-not guidance or sibling alternatives are offered, which keeps it below a 5.

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