Skip to main content
Glama

restore-key

Destructive

Imports a backup-encryption certificate and private key so encrypted backups can be decrypted and restored. Supports dry-run planning to preview changes before applying them.

Instructions

dbabrain common.cli restore-key: A backup-encryption certificate to import. 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):

  • target: The instance.

  • sqlcmd: Run it where the SQL Server is: the run-sqlcmd request without its sql - for an instance this machine cannot reach over a driver. Instead of target.

  • certificate_name: The certificate.

  • cer_path: The public half.

  • pvk_path: The private key.

  • password: The key's password.

  • 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": "restore-key"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true, readOnlyHint=false, and openWorldHint=true, so the safety profile is known. The description adds useful context beyond annotations: emergency-operation confirmation requirements, a reason field, dry_run planning behavior, and the target vs. sqlcmd execution choice.

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 front-loaded and uses a compact field list, with little filler beyond the vague phrase "Changes or removes something." The fragmented CLI-oriented wording is slightly awkward but remains efficient and scannable.

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?

For a destructive, open-world command with a single under-documented request object, the description supplies the essential fields, confirmation requirements, dry_run behavior, and target/sqlcmd distinction. Since an output schema exists, it does not need to explain return values in detail.

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?

The schema has 0% description coverage and only exposes a generic request object, so the description carries most of the burden. It documents the meaningful request fields and clarifies the mutually exclusive target vs. sqlcmd approach, though some field descriptions remain terse.

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?

The description identifies a specific resource: a backup-encryption certificate to import, which aligns with the restore-key name. It is clear enough to distinguish an import/restore operation from status or request operations, but it does not explicitly differentiate itself from siblings such as key-renew or key-request.

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 gives operational context by saying this is on the emergency-operations list, requiring confirm: "yes" and a reason, and it indicates dry_run can be used to plan only. However, it does not explicitly state when to choose restore-key over key-renew or key-request, nor when not to use it.

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