Skip to main content
Glama

disable-job

Destructive

Disables a named SQL Server Agent job through DBA Brain's emergency-operations flow, requiring confirmation and a reason for audited break-glass changes.

Instructions

dbabrain common.cli disable-job: A break-glass SQL Server action: shrink a log, kill a session, start or disable a job. server_id (or target) names the server; its connection or host login is completed from this node's inventory and encrypted secret store, so a request carries no password. 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 machine or instance: a server_id, or <db_type> <ip>[:port].

  • server_id: The instance, when not in target.

  • sql_access: How to reach the SQL engine, overriding the instance's block.

  • database_name: One database.

  • size_mb: shrink-log: the size to shrink to.

  • spid: kill-spid: the session.

  • report_rollback: kill-spid: report the rollback's progress.

  • job_name: start-job / disable-job: the Agent job.

  • override: Accept a blocking gate.

  • timeout_seconds: How long to wait.

  • dry_run: Plan only: change nothing.

  • confirm: The payload declares the operator agreed.

  • assume_yes: Unattended: take the typed yes as given.

  • authorized_by: Who approved it, for example {"channel": "telegram"}.

  • reason: Why, for the evidence.

  • connection: The database login, complete: db_type, host, port, username, password - and, where they apply, database, instance_name, service_name, sqlserver_driver, sqlserver_tls_verify and sql_access (the 8i bridge); server_id an...

  • rules: What the operation costs to confirm: {level, confirmations, challenge, effects} - the node's own emergency_operations.json entry for it. Absent, the ladder the package ships prices it; malformed, it is refused rather ...

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": "disable-job"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and openWorldHint=true, so the safety profile is covered; the description adds real context on top: credentials are completed from the node's inventory and encrypted secret store so no password is sent, a `confirm: "yes"` plus `reason` is needed for emergency operations, `dry_run` exists, and `rules` prices the confirmation ladder. That is substantive behavior beyond the annotations. The gain is undercut by truncated clauses ('server_id an...', 'refused rather ...') that leave parts of the story unfinished.

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

Conciseness2/5

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

This reads as pasted CLI help text: wrapped lines, ellipsis-truncated sentences, and a field list mixing parameters for other operations (spid, size_mb) into this tool's definition. The most important facts — that it is destructive and needs confirm+reason — are buried in the third paragraph rather than front-loaded. The length is not the problem so much as the unfiltered, unfinished structure.

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, but for a destructive, open-world tool wrapping an arbitrary `request` object with zero schema coverage, the description should fully document the request contract and the confirmation protocol. It gets most of the way there on fields and confirmation, yet truncation leaves the `connection` and `rules` shapes indeterminate. An agent could probably call it, but would risk malformed payloads.

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 0% and the only parameter is an untyped `request` object, so the description carries the entire burden — and it does enumerate most fields (target, server_id, sql_access, database_name, size_mb, spid, report_rollback, job_name, override, timeout_seconds, dry_run, confirm, assume_yes, authorized_by, reason, connection, rules) with per-field meanings. That is a meaningful semantic layer over a bare schema. It falls short of 5 because types, requiredness, and the `connection`/`rules` sub-structures are cut off mid-sentence.

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 sentence names an ambiguous scope: it calls itself `disable-job` but then describes 'a break-glass SQL Server action: shrink a log, kill a session, start or disable a job', which overlaps three sibling tools (start-job, kill-spid, shrink-log). The field annotations later narrow `job_name` to 'start-job / disable-job', suggesting this is a multi-action emergency tool, but the agent must reconcile the title with the body to figure that out. The verb+resource is identifiable, but sibling differentiation is muddled rather than clarified.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this versus start-job, kill-spid, or shrink-log, even though those siblings exist and the description lists their actions as belonging to this tool. The 'emergency-operations list' and break-glass framing hint at the context, but the agent is left to infer the routing rule. No exclusions or preconditions are stated beyond the confirm/reason requirement.

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