Skip to main content
Glama

Restore managed database

databases.restore
Destructive

Queue a managed database restore from a snapshot or engine-specific point-in-time log. Fork mode preserves the source. In-place mode replaces current state and requires confirm_inplace=true.

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": {
      "deployment_id": "<deployment_id>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "databases.restore"
  }
}

Input Schema

NameRequiredDescriptionDefault
source_refNobackup artifact or run reference; omit to use an available recovery point
source_typeNosnapshot, wal, oplog, or binlog; defaults to snapshot
target_modeNoinplace or fork; defaults to inplace
restore_timeNoRFC3339 point-in-time recovery timestamp
deployment_idYesmanaged database deployment identifier
confirm_inplaceNomust be true when target_mode is inplace because current database state will be replaced
idempotency_keyYesunique caller-generated key for safe retries of this exact request
organization_idNoorganization membership to use for this call; omit only when the account has one current membership

Output Schema

NameRequiredDescriptionDefault
operationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only supply destructiveHint=true and openWorldHint=false; the description goes further by stating the call is queued (async), that fork mode is non-destructive to the source, and that in-place mode replaces current state and is gated behind confirm_inplace=true. That spells out exactly what gets destroyed and under what safety condition, which is the most valuable thing an agent needs here.

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?

Three short sentences, zero filler, with the core action and the riskiest mode selection front-loaded. Every clause carries actionable information.

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, destructive, async operation with a full output schema, the description covers the destructive path, the safe alternative, the required confirmation flag, and the queued nature of the call. Remaining gaps (permissions required, behavior when no recovery point exists, relationship to the backups.* tools) are minor given the rich schema.

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%, so the baseline is 3, but the description adds meaning the schema does not: it explains that fork preserves the source while inplace does not, whereas the schema's target_mode description only lists the enum values and default. It adds little for the remaining six parameters, which the schema already covers.

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 specific verb and resource ('Queue a managed database restore') and names the two accepted recovery sources (snapshot, point-in-time log), which makes the operation unambiguous next to read-only siblings like databases.restores.history. It does not explicitly contrast itself with any sibling tool, so it stops short of the top band.

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?

'Fork mode preserves the source. In-place mode replaces current state and requires confirm_inplace=true' gives a clear decision rule for choosing between the two modes, which is the main usage fork for this tool. It stops short of 5 because it never states prerequisites (e.g. checking databases.backups.availability first) or when to prefer this over other recovery paths.

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