Skip to main content
Glama

Restore a database

restore_backup
Destructive

Restores a database from a backup (the last successful one by default) or to a point in time; its current data is replaced, with an approval in production.

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_backup"
  }
}

Input Schema

NameRequiredDescriptionDefault
waitNotrue: answers once done.
reasonNoWhy restore, in one sentence for the person who approves.
instantNoRestore the database to this instant (ISO 8601), 14 days at most; excludes backup_id.
projectNoThe project.
databaseNoDatabase name; the first declared by default.
backup_idNoThe backup (get_environment { view: "backups" }); the last successful one by default.
approval_idNoThe granted approval (its id), when the action needs one.
environmentNoProduction or a preview.production

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the bar is lower, yet the description still adds genuinely new behavior: existing data is replaced, the default target is the last successful backup, and production requires an approval before the action proceeds. It does not address duration, reversibility, or what happens to the approval record afterward, which keeps it from a 5.

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?

A single front-loaded sentence packs the modes, the default, the destructive consequence, and the approval gate with no filler. The semicolon-chained clause about data replacement is slightly dense but every element earns its place.

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 an 8-parameter, fully optional, destructive mutation with no output schema, the description covers the essential decision points: which backup, which mode, and the production approval requirement. The only real gap is what the caller receives back, which matters modestly here because the 'wait' parameter implies a completion signal exists.

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 every detail in the description (last-successful backup default, point-in-time mode) is already documented per-parameter, including the 14-day instant limit and the backup_id exclusion that the description omits. The description therefore adds little meaning beyond the schema, so the baseline 3 is appropriate.

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 gives a specific verb and resource ('Restores a database') and immediately distinguishes the two operating modes: from a backup (defaulting to the last successful one) or to a point in time. It does not name the sibling 'backup_database' or explicitly contrast with it, so an agent must infer the inverse relationship, but the action itself is unambiguous.

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?

It states the selection rule for the two modes (backup by default, or a point-in-time instant) and the precondition that production restores require an approval, which tells an agent when the approval_id path applies. It stops short of naming an alternative tool or stating when not to restore, keeping it at 4 rather than 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources