Skip to main content
Glama

move-db-docker

Destructive

Move a lab database Docker instance, including data, between source and destination hosts with health checks, optional volume shipping, and a dry-run preview.

Instructions

dbabrain common.cli move-db-docker: One lab database Docker instance to move, data included. 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):

  • name (required): The instance: its folder name and compose project.

  • engine (required): Its engine, for the health probe. The caller reads it from the registry.

  • source (required): Where it runs now. An ssh_login object: host, port (22), username, and a RESOLVED password or an absolute key_file path - never a ref; label names it in messages.

  • destination (required): Where it goes. An ssh_login object: host, port (22), username, and a RESOLVED password or an absolute key_file path - never a ref; label names it in messages.

  • containers_dir (required): Instance folders on the source: the lab is found under this folder and its name. Stated by the caller - the node's own is sre.docker_db.containers_dir; a request without it is refused by name.

  • dest_containers_dir: Instance folders on the destination. Omitted = the source's.

  • stage_dir: Where the bundle is written on both hosts.

  • include_volumes: Ship the volumes' contents (default true). false = an EMPTY database there.

  • commit_container: Ship the container's own filesystem too - for an engine writing outside its volumes.

  • stop_source: Stop the source once the destination is healthy (kept, not removed).

  • keep_stage: Leave the bundle on both hosts.

  • force: Replace an instance of the same name on the destination - destroys it.

  • health_timeout: How long to wait for health. Omitted = the engine's own ceiling.

  • dry_run: Read the source and say what would move; 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": "move-db-docker"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, and the description adds substantially beyond that: `force` destroys an existing instance of the same name, `include_volumes: false` yields an EMPTY database, `stop_source` keeps rather than removes the source, and credentials must be a RESOLVED password or absolute key_file path, never a ref. The confirm/reason gate and the server-side refusal when `containers_dir` is absent are disclosed prerequisites that an agent cannot get from annotations alone.

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?

Structure is front-loaded and scannable: purpose, then the confirm gate, then a bulleted field list with the highest-risk fields carrying inline warnings. The only wasted text is the vague filler "Changes or removes something," which adds nothing to a tool already described as a move.

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 a destructive, cross-host mutation with an output schema already present, the description covers inputs, defaults, safety gates, and destructive side effects thoroughly. It stops short of 5 because it never says what happens on partial failure or whether a failed move leaves the source intact, which is material for a two-host operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% because the schema is a single opaque `request` object with additionalProperties true, so the description carries the full burden and does: it enumerates every field, marks which are required, gives defaults (port 22, include_volumes true), and explains consequences (`force` destroys, `include_volumes: false` empties the DB, `dest_containers_dir` falls back to the source's). Only minor gaps remain, such as units for `health_timeout` and the format of `stage_dir`.

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 opening line states a specific verb and resource: moving one lab database Docker instance, data included. The `move` vs. `create-db-docker` sibling distinction is implicit in the name and the "source"/"destination" framing rather than stated outright, 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?

Usage context is implied through `dry_run` ("read the source and say what would move; change nothing") and the `confirm`/`reason` requirement for emergency-operations commands, so an agent can infer a preview-then-commit flow. However, there is no explicit when-not guidance and no named alternative for the creation case, leaving the choice against siblings to inference.

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