Skip to main content
Glama

sqlserver-precheck

Read-only

Check, apply, or verify a SQL Server cumulative update on an instance, drawing logins from the encrypted store and honoring maintenance windows, with dry-run planning and checksum validation.

Instructions

dbabrain common.cli sqlserver-precheck: A cumulative update checked, applied or verified on one instance. 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. Request fields (pass them as request):

  • target: The machine or instance: a server_id, or <db_type> <ip>[:port].

  • credential_name: Which login in users.json; default: the instance's own.

  • instance_name: The instance on the host.

  • kb: The update's KB.

  • installer: The installer's path.

  • installer_sha256: Its expected checksum.

  • skip_hash: Do not check it.

  • expected_build: The build it should end on.

  • registry_key: Where the instance's build is read.

  • setup_account: Who runs setup.

  • window: The maintenance window.

  • ignore_window: Run outside it.

  • 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...

  • access: The host login, complete: an inline cmd_access - method (ssh|winrm), host, port, username, auth_type, key_file or password - with the machine's platform and runtime facts. The app that calls fills it from its own data...

  • policy: The maintenance policy that times this host operation: the node's maintenance_policy.json defaults with this server's own values over them. {} means the built-in defaults. The app that calls fills it from its own data...

  • 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": "sqlserver-precheck"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Beyond the annotations, the description adds real context: the login is resolved from this node's inventory and encrypted secret store so no password travels in the request, and operations are gated by a maintenance `window`, a confirmation `rules` ladder, and `authorized_by`/`reason` evidence fields. However, the wording "checked, applied or verified" leaves the side-effect profile ambiguous against readOnlyHint=true, and the field list is cut off with ellipses in the most consequential sections (connection, access, policy, rules).

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?

The text is a raw doc dump with a leading fragment ("dbabrain common.cli `sqlserver-precheck`:") and multiple truncated sentences ending in ellipses. The purpose occupies one line before a long ungrouped bullet list, so nothing is prioritized for a reader who only needs to decide whether to call it. The field glosses themselves are terse enough, but the overall structure is not curated.

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 the missing return-value description is acceptable, and credential resolution and confirmation gating are covered. For a tool whose entire surface is one opaque `request` object, though, the truncation of the connection, access, policy and rules explanations leaves gaps an agent cannot fill from the schema. It is adequate at the top level but incomplete where the request is actually assembled.

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 collapses everything into a bare `request` object with additionalProperties, so the description is the only documentation of roughly twenty request fields and it delivers meaningful semantics (kb, installer_sha256, expected_build, skip_hash, setup_account, assume_yes, ignore_window). It loses a point because required-vs-optional is never indicated and several field glosses terminate mid-sentence with "..." right where the nested connection/access/policy structures matter most.

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, "A cumulative update checked, applied or verified on one instance," names the domain but not a single clear action, and it blurs the line between this tool and siblings like sqlserver-apply-cu and sqlserver-verify-build. The name implies a pre-flight check, yet the prose lists apply/verify verbs without stating which operation this invocation performs. An agent can guess it is CU-related, but not precisely what it does.

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 statement of when to call this versus sqlserver-apply-cu, sqlserver-verify-build, or sqlserver-verify-instance, even though those siblings plainly overlap. The `dry_run` field gloss ("Plan only: change nothing") hints at a planning role, but the reader must infer it from a parameter description rather than from the tool text. No prerequisites, sequencing, or exclusions are given.

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