Skip to main content
Glama

verify-restore

Read-only

Verify restored databases by running engine-native consistency checks on SQL Server, PostgreSQL, and Oracle to confirm backups are recoverable and intact.

Instructions

dbabrain common.cli verify-restore: Which restored databases to ask about, and where. Request fields (pass them as request):

  • db_type (required): The engine.

  • target: The instance.

  • host: Oracle / PostgreSQL: the host block the check runs on - {host, port, username, password|key_file, runtime}.

  • port: Its port.

  • username: Who asks.

  • database_names: The databases, by the names they were restored under.

  • database_name: One database.

  • oracle_sid: Oracle: the SID.

  • timeout_seconds: How long to wait.

  • consistency: Also run the engine's own consistency check (0.35.0, 1.251): DBCC CHECKDB on each SQL Server database, pg_amcheck --all on PostgreSQL, RMAN VALIDATE CHECK LOGICAL and v$database_block_corruption on Oracle. restore-by-...

  • consistency_timeout_seconds: With consistency: how long the check may run - kept on the host for PostgreSQL (timeout), the transport waits 60 s more; RMAN VALIDATE likewise. restore-by-id sets it from the entry's checkdb_timeout_seconds.

  • consistency_jobs: With consistency on PostgreSQL: pg_amcheck --jobs. restore-by-id sets it from the entry's checkdb_jobs.

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

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

Beyond the readOnly/openWorld annotations, the description discloses concrete runtime behavior: consistency triggers DBCC CHECKDB, pg_amcheck --all, or RMAN VALIDATE CHECK LOGICAL plus v$database_block_corruption, and notes version gates (0.35.0, 1.251) and that the PostgreSQL transport waits 60 s beyond the host timeout. This is meaningful operational context, though the text is garbled where 'restore-by-...' appears.

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

Conciseness3/5

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

The bulleted field list is front-loaded and scannable, but the lead sentence is awkward, several bullets are near-tautological, and the corrupted 'restore-by-...' fragment plus inconsistent phrasing ('kept on the host for PostgreSQL (timeout)') read like raw CLI help text rather than curated documentation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described, and the request fields are broadly covered. However, for a tool that reaches out to a host and runs heavy engine checks, the description omits prerequisites such as required credentials/permissions on the target instance and any statement of what 'verify' concludes on success.

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 coverage is 0% and the schema exposes only an opaque `request` object with additionalProperties true, so the description carries the full burden — and it enumerates roughly a dozen request fields (db_type, target, host block, port, username, database_names/database_name, oracle_sid, timeout_seconds, consistency, consistency_timeout_seconds, consistency_jobs). Some entries add little ('timeout_seconds: How long to wait', 'port: Its port'), and the overlap between database_names and database_name is not disambiguated.

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

Purpose3/5

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

The opening line 'Which restored databases to ask about, and where' gestures at the subject (restored databases plus a host) but never states a clear verb+resource like 'verify that restored databases are intact by running the engine's consistency checks.' An agent can infer the purpose only after reading the consistency parameters.

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?

There is no explicit when-to-use/when-not guidance and no comparison to siblings such as sqlserver-verify-build or restore-full. The only routing hint is the truncated 'restore-by-...' plus the note that restore-by-id populates consistency_timeout_seconds and consistency_jobs, which implicitly positions this as the lower-level, ad-hoc variant.

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