Skip to main content
Glama

backup-stop

Destructive

Stops a running backup on its host by terminating its process tree first, then its sessions; requires confirm "yes" and a reason.

Instructions

dbabrain common.cli backup-stop: One running backup to stop on its host: its process tree first, then its sessions. 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):

  • run_tag (required): The run's DBABRAIN_RUN_TAG, <backup_id>_<job_runs id>: its pid file /dbabrain_runs/.pid and its sessions' host_name dbabrain:. A-Z a-z 0-9 _ . -, at most 100.

  • db_type (required): The run's engine; sqlserver also ends every session the run opened.

  • host: Where the run is: hostcmd's block {runtime, host, port, access, username, password|key_file}, as backup-database took it. runtime windows runs the PowerShell stop.

  • env: Resolved values: DOCKER_CONTAINER, MSSQL_SERVER, MSSQL_USER, MSSQL_PASSWORD - the run's own login. Any other key is not sent.

  • timeout: Seconds the stop may take; default 120.

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": "backup-stop"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, and the description adds substantive behavior beyond them: the process tree is killed before sessions, sqlserver also ends every session the run opened, windows hosts execute a PowerShell stop, and the stop has a default 120-second budget. It does not contradict the annotations, and the added kill-order and session-termination detail is exactly the kind of context an agent needs before invoking a destructive op.

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?

Purpose is front-loaded in the opening sentence, followed by a scannable bulleted field list, so the agent can find required fields quickly. Minor waste remains: the 'dbabrain common.cli `backup-stop`:' prefix adds nothing and 'Changes or removes something.' is generic boilerplate already implied by destructiveHint.

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 not be explained, and for a destructive one-parameter tool the description covers the essentials: required request fields and their formats, host connection shape, engine-specific session cleanup, the confirmation prerequisite, and the timeout. The remaining gap is failure/edge-case behavior — what happens when no run matches the tag or the timeout elapses.

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 single `request` parameter is a free-form object, so the description carries the full burden — and it does: run_tag with its format and derived pid-file/session naming, db_type with engine-specific behavior, host's block structure, the whitelisted env keys, and the timeout default. Points are withheld only because the host/env entries defer to another tool ('as backup-database took it'), forcing cross-tool inference, and confirm/reason are mentioned in prose but not listed as request fields.

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 first sentence names a specific verb and resource: 'One running backup to stop on its host,' and even describes the mechanism (process tree first, then sessions). It is clear what the tool does, though it never distinguishes itself from backup-side siblings such as backup-database or pack-backup, and the leading 'dbabrain common.cli `backup-stop`:' fragment is noise rather than meaning.

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?

It states a real precondition — the command is on the emergency-operations list, so the request must carry confirm:'yes' and a reason — which is genuine usage guidance. However, there is no explicit when-to-use/when-not-to-use guidance relative to alternatives (e.g., when a backup is stuck vs. already finished), and no mention of what happens if no backup is running.

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