local_ydb_set_root_password
Change the YDB runtime root password, then sync the host auth config and root password file. Use with a plan-first workflow: preview changes without confirm, then set confirm to true to apply and persist the new non-empty password.
Instructions
Rotate the runtime root password with ALTER USER and sync the host auth config and root password file to match. YDB may reject passwords that violate auth_config.password_complexity; this tool requires a non-empty password value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be true to rotate and persist the root password. Omit or false for plan-only output. | |
| profile | No | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. | |
| password | Yes | New non-empty root password without carriage returns or newlines to apply to the runtime root user and then persist into the host auth config and root password file. YDB defaults to no password complexity requirements, but the selected cluster may still reject the value when auth_config.password_complexity is configured. | |
| configPath | No | Explicit local-ydb config file path to load for this tool call. Useful when the MCP server should pick up a different config without restart. |