sqlserver-apply-cu
Applies or verifies a SQL Server cumulative update on one instance, checking the KB and build against its inventory secrets, with dry-run planning, maintenance windows and confirm/reason safeguards.
Instructions
dbabrain common.cli sqlserver-apply-cu: 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.
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].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-apply-cu"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |