Skip to main content
Glama

restore-metadata

Destructive

Replay server-level metadata files after a restore to reinstate required settings; use dry-run planning or confirmed changes with a reason.

Instructions

dbabrain common.cli restore-metadata: Server-level metadata files to replay after a restore. 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.

  • host: The host.

  • files: The files.

  • 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-metadata"
  }
}

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
Behavior3/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 safety profile is structured data. The description adds genuinely non-redundant behavior: the confirm/reason confirmation gate and the dry_run plan-only mode. Against that, 'Changes or removes something' is vague about what exactly is overwritten and it says nothing about irreversibility or how existing metadata is handled.

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 request-field list is well structured and the key constraint (confirm/reason) is placed early. But 'Changes or removes something.' is vague filler that duplicates the destructive annotation, and the sentence about the emergency-operations list is awkwardly phrased ('as on the command line').

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, so return values need no explanation, and the description covers the destructive nature, the confirmation gate and the field inventory for an otherwise opaque request object. What is missing is concrete field semantics (file formats, ordering, what a partial replay does) for a destructive operation.

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 0% and the schema is a bare free-form object, so the description is the only place field names appear — it lists target, host, files and dry_run, plus confirm/reason via prose. However the definitions are tautologies ('The instance.', 'The host.', 'The files.') and give no format (single file, list, glob, path style), so the compensation is partial.

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 the resource and scope precisely: server-level metadata files replayed after a restore, which distinguishes it from the sibling restore-diff/restore-full/restore-key/restore-log operations. The verb is only implied ('to replay after a restore') rather than stated as an imperative, which keeps it just short of a 5.

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?

Provides a timing context ('after a restore') and a prerequisite (confirm: "yes" plus a reason on the emergency-operations list). It never says when not to use it or which sibling to pick for a different restore scope, leaving the agent to infer alternatives from names.

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