Skip to main content
Glama

restore

Destructive

Recover a database by applying full, differential, or log backup steps on SQL Server, PostgreSQL, or Oracle, then verify the result.

Instructions

Run one restore step on one engine - step full (on PostgreSQL the base backup chain), diff (differential or incremental on top of the full) or log (logs, WAL or archived logs, to the latest or a point in time). Run them in that order, then verify-restore.

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": {
      "request": "<request>"
    },
    "name": "restore"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYesThe command's request.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and openWorldHint=true, so the risk profile is known. The description adds behavior beyond that: it is a single step per call, must be called repeatedly in a fixed order, and is incomplete until verify-restore runs. It does not spell out irreversibility or what happens to an interrupted chain, which slightly caps the score against the very high annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the core action, then the step breakdown, then the ordering instruction. Every clause carries information an agent needs; no redundant restatement of the tool name or schema.

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?

An output schema exists and the input schema is fully described, so the description need not cover return values or parameter details. It supplies the one thing structured fields cannot: the multi-call workflow and its ordering. Minor gap is the absence of any note on failure/interruption consequences for a destructive multi-step operation.

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 description coverage is 100% and every nested property carries a description, so the schema baseline is 3. The description nevertheless adds meaning to the `step` field by explaining what each value means per engine (diff as differential/incremental on top of the full, log as WAL/archived logs to a point in time), which the enum alone does not convey.

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 (run one restore step) on a specific resource (one engine), then enumerates the three step values with engine-specific meaning (PostgreSQL base backup chain; WAL/archived logs to latest or a point in time). The phrase 'one restore step' distinguishes it from a hypothetical full-restore tool, and the sibling verify-restore is named.

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 explicit sequencing: full, then diff, then log, followed by verify-restore. That is genuine when-to-use guidance including the ordering constraint an agent could otherwise get wrong. It stops short of stating exclusions (e.g. when not to use it versus backup/restore-key siblings) or prerequisites such as overwrite_existing.

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