Local YDB MCP
v0.19.1Operate local-ydb deployments through local or SSH-backed MCP tools.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
local_ydb_inventory
Read-only Docker inventory for a local-ydb target profile. Success returns ok=true, Docker CLI/daemon state, containers, volumes, and inspect data for configured containers that actually exist; Docker CLI, daemon, or inventory failures return ok=false with a reason and omit inventory arrays so failure cannot be mistaken for an empty host. SSH target or probe failures use docker-inventory-failed with conservative Docker availability flags.
| Parameter | Type | Description |
|---|---|---|
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
local_ydb_database_status
Read-only YDB admin database status for the configured tenant path. Returns the command, stdout, stderr, and ok flag; use this for tenant state before bootstrap/restart troubleshooting, and use local_ydb_tenant_check for scheme reachability.
| Parameter | Type | Description |
|---|---|---|
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
local_ydb_healthcheck
Read-only YDB monitoring healthcheck for the configured tenant or root database. Uses the official YDB CLI SelfCheck path, returns selfCheckResult, issue counts, issue types, capped raw output, and whether the database is healthy; a requested noCache/noMerge option rejected with the exact recognized two-line legacy parser signature is reported through optionResolution and warnings, while compatibilityFallback says whether a retry actually started. Use after local_ydb_status_report for database-level diagnostics.
| Parameter | Type | Description |
|---|---|---|
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
databasePath | string | YDB database path to check. Defaults to the configured tenant path; only the configured tenant path or root database path are accepted. |
maxIssues | integer | Maximum number of issue_log entries returned in the issues field. Counts still cover the full response. Defaults to 100. |
maxOutputBytes | integer | Maximum UTF-8 bytes returned per raw stdout/stderr stream. Defaults to 65536. |
noCache | boolean | Request cache-bypass semantics for this healthcheck. Newer YDB CLIs receive --no-cache. A rejection matching the exact recognized two-line legacy parser signature is recorded in optionResolution and w… |
noMerge | boolean | Request unmerged healthcheck issue entries. Newer YDB CLIs receive --no-merge. A rejection matching the exact recognized two-line legacy parser signature is recorded in optionResolution and warnings;… |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
timeoutMs | integer | Server-side YDB healthcheck timeout in milliseconds. Defaults to 120000. |
local_ydb_container_logs
Read recent Docker logs from the configured static or primary dynamic local-ydb container. Use when bootstrap, restart, or readiness checks fail; target selects the container role and lines controls the tail length.
| Parameter | Type | Description |
|---|---|---|
target * | string | Container role to read logs from: static node or primary dynamic tenant node. |
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
lines | integer | Number of recent log lines to read. Defaults to 200. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
local_ydb_status_report
Read-only aggregate report for quick diagnosis. Runs local_ydb_inventory, local_ydb_auth_check, local_ydb_tenant_check, local_ydb_nodes_check, and local_ydb_healthcheck, returning each result; every component is isolated so an unexpected failure produces a safe component-shaped fallback and does not stop the remaining checks.
| Parameter | Type | Description |
|---|---|---|
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
local_ydb_tenant_check
Read-only check that uses the YDB CLI to verify the configured tenant path is reachable. Use after bootstrap or restore to confirm tenant metadata before node or GraphShard checks.
| Parameter | Type | Description |
|---|---|---|
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
local_ydb_scheme
Read-only YDB scheme list or describe with capped stdout/stderr. It uses the root database for rootDatabase paths and the tenant database otherwise; list supports recursive/long/onePerLine flags, describe supports stats, and incompatible flag combinations are rejected.
| Parameter | Type | Description |
|---|---|---|
action | string | Scheme operation to run. Defaults to list. |
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
long | boolean | For action=list, pass -l for detailed object attributes. |
maxOutputBytes | integer | Maximum UTF-8 bytes returned per stdout/stderr stream. Defaults to 65536. |
onePerLine | boolean | For action=list, pass -1 to print one object per line. |
path | string | Scheme path to inspect. Defaults to the configured tenant root. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
recursive | boolean | For action=list, pass -R to recursively list subdirectories. |
stats | boolean | For action=describe, pass --stats. |
local_ydb_generate_schema
Read-only structured YDB table DDL generator. It renders strict JSON specs for CREATE TABLE, ALTER TABLE, DROP TABLE, and secondary indexes, returns the generated script with official references and warnings, and can optionally validate through the YDB JS SDK without applying changes.
local_ydb_apply_schema
Validate or apply YDB table DDL through the official YDB JS SDK. It accepts raw YQL DDL for PRAGMA plus CREATE TABLE, ALTER TABLE, and DROP TABLE; action=apply validates first and executes only with confirm=true.
| Parameter | Type | Description |
|---|---|---|
script * | string | YQL DDL script to validate or apply. Supports PRAGMA plus CREATE TABLE, ALTER TABLE, and DROP TABLE statements. |
action | string | Schema operation to run. validate only checks the YQL DDL through the YDB SDK; apply validates first and executes only with confirm=true. |
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
confirm | boolean | Must be true to execute action=apply after SDK validation succeeds. Omit or false for validation plus plan-only output. |
databasePath | string | YDB database path for SDK validation/application. Defaults to the configured tenant root; root database paths use the static gRPC port. |
maxOutputBytes | integer | Maximum UTF-8 bytes returned per validation/execution issue stream. Defaults to 65536. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
timeoutMs | integer | SDK operation timeout in milliseconds. Defaults to 120000. |
local_ydb_sql
Run managed YQL v1 against the configured local-ydb target through Query Service. query uses SnapshotRO, explain returns plan/AST, and execute always runs EXPLAIN first and sends one NoTx execution only with confirm=true.
| Parameter | Type | Description |
|---|---|---|
script * | string | Well-formed-Unicode YQL v1 script; lone UTF-16 surrogates are rejected. Parameter DECLARE statements are generated from parameters and prepended before execution. |
action | string | Managed YQL action. query uses SnapshotRO, explain returns plan/AST without execution, and execute always EXPLAIN-preflights before optional confirmed NoTx execution. |
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
confirm | boolean | Considered only for action=execute. Must be true to send one NoTx execution after successful EXPLAIN; query remains SnapshotRO even when true. |
databasePath | string | Configured tenant or root database path. Defaults to the selected profile tenant path; root paths use the static gRPC port. |
maxOutputBytes | integer | Shared retained-output budget for issues, plan/AST, columns, and rows. |
maxRows | integer | Maximum retained rows per result set. The first limit hit stops all further result capture: read-only execution is cancelled, while confirmed NoTx execution drains without capturing later output. |
parameters | object | Typed YQL parameters keyed by bare name. The request is limited to 100 parameters, 1,000 descriptor nodes, 10,000 value nodes, and 1 MiB of serialized parameter data. Struct field names must be well-f… |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
timeoutMs | integer | Single deadline in milliseconds shared by connection, session, preflight, execution, and cancellation. |
local_ydb_permissions
Inspect or change YDB scheme permissions for a path. The default list action is read-only; grant, revoke, set, clear, chown, and inheritance changes return a plan unless confirm=true.
| Parameter | Type | Description |
|---|---|---|
action | string | Permissions operation to run. Defaults to list, which is read-only and does not require confirm. |
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
confirm | boolean | Must be true to execute mutating actions. Omit or false for plan-only output. Not required for action=list. |
maxOutputBytes | integer | For action=list, maximum UTF-8 bytes returned per stdout/stderr stream. Defaults to 65536. |
owner | string | New owner for action=chown. |
path | string | Scheme path to manage. Defaults to the configured tenant root. |
permissions | array | Permission names for grant, revoke, and set actions. Each item is passed as its own -p argument. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
subject | string | User or group subject for grant, revoke, and set actions. |
local_ydb_nodes_check
Read-only check of dynamic node registration through viewer/json nodelist. Use after starting, adding, or removing dynamic nodes; use local_ydb_tenant_check first when tenant reachability is unknown.
| Parameter | Type | Description |
|---|---|---|
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
local_ydb_graphshard_check
Read-only GraphShard check through viewer/json capabilities and tabletinfo for the configured tenant. Returns graphShardExists, tablet ids, and viewer status details; use after tenant bootstrap when GraphShard support or tablet visibility is the specific question.
| Parameter | Type | Description |
|---|---|---|
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
local_ydb_auth_check
Read-only auth audit that checks anonymous viewer whoami status and configured YDB CLI tenant access, using root credentials when rootPasswordFile is configured. Use after auth hardening or password rotation to verify the expected posture.
| Parameter | Type | Description |
|---|---|---|
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
local_ydb_storage_placement
Read-only storage inspection that returns ReadStoragePool output and BSC physical placement. Use before adding or reducing storage groups to confirm the exact pool shape.
| Parameter | Type | Description |
|---|---|---|
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
local_ydb_add_storage_groups
Increase NumGroups for one tenant storage pool using the current ReadStoragePool definition. Without confirm=true this returns the DefineStoragePool plan, rollback, target pool, and target count; when the update succeeds it verifies NumGroups and tenant metadata.
| Parameter | Type | Description |
|---|---|---|
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
confirm | boolean | Must be true to execute planned commands. Omit or false for plan-only output. |
count | integer | Number of storage groups to add. Defaults to 1. |
poolName | string | Explicit storage pool name. Defaults to <tenantPath>:<storagePoolKind>. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
local_ydb_reduce_storage_groups
Reduce NumGroups for a tenant storage pool by dumping the tenant, rebuilding the profile stack with a smaller storagePoolCount, restoring the dump, and reapplying auth when needed. Before dump or destroy, it inspects every one-off dynamic node and preserves its exact gRPC, monitoring, and IC ports; an incomplete definition aborts the rebuild.
| Parameter | Type | Description |
|---|---|---|
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
confirm | boolean | Must be true to execute planned commands. Omit or false for plan-only output. |
count | integer | Number of storage groups to remove from the current tenant pool. Defaults to 1. |
dumpName | string | Optional dump directory name under profile.dumpHostPath to preserve before rebuild. |
poolName | string | Explicit storage pool name. Defaults to <tenantPath>:<storagePoolKind>. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
local_ydb_storage_leftovers
Read-only search for candidate leftover local-ydb Docker volumes, dumps, and PDisk/data paths. It scans Docker volume names plus profile.storageSearchPaths and deletes nothing; use before local_ydb_cleanup_storage to decide exact paths or volumes to remove.
| Parameter | Type | Description |
|---|---|---|
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
local_ydb_list_versions
List published GHCR or Docker Hub tags for a local-ydb container image, with numeric version tags sorted newest first. Use before local_ydb_upgrade_version; registry pagination and authentication are restricted to trusted origins, and pageSize and maxPages bound pagination.
| Parameter | Type | Description |
|---|---|---|
image | string | GHCR or Docker Hub container image name to inspect. Defaults to ghcr.io/ydb-platform/local-ydb. |
maxPages | integer | Maximum number of registry pages to fetch before truncating the result. Defaults to 10. |
pageSize | integer | Requested tags per registry page. Defaults to 100. |
local_ydb_pull_image
Plan or start a background Docker pull for a local-ydb image on the selected target. Without confirm=true it returns inspect and pull commands only; with confirm=true it returns a jobId for local_ydb_pull_status unless the image is already present.
| Parameter | Type | Description |
|---|---|---|
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
confirm | boolean | Must be true to start the background Docker pull. Omit or false for plan-only output. |
image | string | Container image to pull. Defaults to the selected profile image. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
local_ydb_pull_status
Check the status of a background Docker image pull started by local_ydb_pull_image. For known jobs it returns a monotonic progressPercent based on completed known Docker layers rather than bytes: 0-99 while running, 100 after successful completion, and the last observed value after failure.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | Background pull job id returned by local_ydb_pull_image. |
local_ydb_destroy_stack
Remove tenant metadata, local-ydb containers, network, and storage for a profile, with optional host-path cleanup.
| Parameter | Type | Description |
|---|---|---|
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
confirm | boolean | Must be true to execute planned commands. Omit or false for plan-only output. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
removeAuthArtifacts | boolean | Delete explicit authConfigPath, dynamicNodeAuthTokenFile, and rootPasswordFile when configured. Defaults to false. |
removeBindMountPath | boolean | Delete profile.bindMountPath when the profile uses a bind mount. Defaults to false. |
removeDumpHostPath | boolean | Delete profile.dumpHostPath. Defaults to false because it may be shared. |
local_ydb_bootstrap_root_database
Bootstrap a plain local YDB database at /local with only a static node. Use for generic local database requests that do not need a CMS tenant, GraphShard, or dynamic nodes; an existing running or stopped static container is reused only when its image, network, data mount, complete port bindings, required environment, restart policy, and disabled healthcheck match the profile. Without confirm=true this returns the plan without executing it.
| Parameter | Type | Description |
|---|---|---|
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
confirm | boolean | Must be true to execute planned commands. Omit or false for plan-only output. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
local_ydb_bootstrap
Bootstrap a tenant topology: static node with GraphShard flags and loopback bindings for static plus every configured dynamic gRPC port, configured CMS tenant, and all dynamic nodes declared by profile.dynamicNodeCount. Before returning or executing a plan, configured container names must be distinct from the static container and all shared-network ports must be valid and unique. Nodes start in index order; before the next node starts, readiness requires the exact Docker container to be running, not restarting, stable by container ID and RestartCount across two checks, and registered by its IC…
| Parameter | Type | Description |
|---|---|---|
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
confirm | boolean | Must be true to execute planned commands. Omit or false for plan-only output. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
local_ydb_check_prerequisites
Check target-host prerequisites for the Docker CLI and daemon, curl, ruby, and the configured rootPasswordFile when present. An unreachable SSH target returns unavailable=[target] without claiming tools are missing or proposing installation. Without confirm=true it returns the current snapshot and any apt-get plan; confirm=true may install only supported curl/ruby packages, then returns a refreshed post-install snapshot, and never starts or installs Docker.
| Parameter | Type | Description |
|---|---|---|
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
confirm | boolean | Must be true to execute planned commands. Omit or false for plan-only output. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
local_ydb_create_tenant
Create the configured CMS tenant when the static node is already running. Use before local_ydb_start_dynamic_node for tenant topologies; without confirm=true this returns the planned status/create command and creates nothing.
| Parameter | Type | Description |
|---|---|---|
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
confirm | boolean | Must be true to execute planned commands. Omit or false for plan-only output. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
local_ydb_start_dynamic_node
Start the configured primary dynamic tenant node for an existing CMS tenant. Before returning or executing a plan, it rejects a primary name that aliases the static container and ports that collide in the shared network namespace, including static IC port 19001. After checking that the image is present, it runs the full check-only static compatibility preflight, including the current image ID, immediately before the dynamic container start; a mismatch fails closed and requires destroy followed by bootstrap. The dynamic container is created but not started until its resolved image ID matches th…
| Parameter | Type | Description |
|---|---|---|
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
confirm | boolean | Must be true to execute planned commands. Omit or false for plan-only output. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
local_ydb_add_dynamic_nodes
Add one-off dynamic tenant nodes beyond the declarative profile.dynamicNodeCount topology, one at a time. By default the first suffix is dynamicNodeCount + 1; an explicit startIndex must be greater than dynamicNodeCount, and port overrides remain available. Every planned name must be distinct from the static container and all configured plus one-off ports must be valid and unique in the shared network namespace. After each image-presence check, it repeats the full check-only static compatibility preflight, including the current image ID, immediately before each node start; a mismatch stops tha…
| Parameter | Type | Description |
|---|---|---|
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
confirm | boolean | Must be true to execute planned commands. Omit or false for plan-only output. |
count | integer | Number of additional dynamic nodes to add. Defaults to 1. |
grpcPortStart | integer | gRPC port for the first added node. Defaults to profile.dynamicGrpc + startIndex - 1. |
icPortStart | integer | Interconnect port for the first added node. Defaults to profile.dynamicIc + startIndex - 1. |
monitoringPortStart | integer | Monitoring port for the first added node. Defaults to profile.dynamicMonitoring + startIndex - 1. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
startIndex | integer | Suffix for the first added container. It must be greater than profile.dynamicNodeCount. Defaults to profile.dynamicNodeCount + 1, producing <dynamicContainer>-<dynamicNodeCount + 1>. |
local_ydb_remove_dynamic_nodes
Remove dynamic tenant suffix nodes one at a time and verify nodelist disappearance when the node IC port can be resolved. Without containers, nodeIds, or startIndex, only one-off suffixes above profile.dynamicNodeCount are eligible and the highest suffix is removed first. Explicit selectors or startIndex may remove a configured suffix and create drift that bootstrap or restart restores. Rollback guidance uses bootstrap/restart for configured nodes and add_dynamic_nodes with matching suffixes and ports for one-off nodes. The primary dynamicContainer is always protected.
| Parameter | Type | Description |
|---|---|---|
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
confirm | boolean | Must be true to execute planned commands. Omit or false for plan-only output. |
containers | array | Explicit suffix dynamic-node container names to remove. Configured suffixes can be selected and become runtime drift; the profile's primary dynamicContainer remains protected. |
count | integer | Number of dynamic nodes to remove when containers and nodeIds are omitted. Defaults to 1. |
nodeIds | array | Explicit YDB dynamic-node IDs to remove. IDs may resolve to configured or one-off suffix containers; the profile's primary dynamicContainer is not removable through this option. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
startIndex | integer | Minimum suffix to consider removable. Without explicit containers or nodeIds, defaults to profile.dynamicNodeCount + 1 so configured suffixes are excluded. Explicit selectors default to 2. An explicit… |
local_ydb_restart_stack
Reconcile and restart the selected profile after inventory and a full check-only static compatibility preflight. Before stopping any container, require the existing static container to match the profile image, network, data mount, environment, restart policy, healthcheck, and exact loopback bindings for static gRPC, monitoring, and every configured dynamic gRPC port; configured binding changes require destroy followed by bootstrap. Then report missing configured and unexpected one-off dynamic containers, stop running dynamic containers before static, unconditionally recreate every configured n…
| Parameter | Type | Description |
|---|---|---|
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
confirm | boolean | Must be true to execute planned commands. Omit or false for plan-only output. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
local_ydb_upgrade_version
Upgrade a file-backed, volume-backed local-ydb profile to a target image tag. Use only for version upgrades on profiles without bindMountPath; before dump or destroy it inspects every one-off dynamic node and preserves its exact gRPC, monitoring, and IC ports, aborting on an incomplete definition. It then preflights source and target images, dumps, rebuilds, restores, reapplies auth when configured, recreates extra nodes, and performs final image verification. A verified mismatch leaves the profile unchanged; if final inventory is unavailable after successful rebuild phases, the response keeps…
| Parameter | Type | Description |
|---|---|---|
version * | string | Target image tag returned by local_ydb_list_versions. |
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
confirm | boolean | Must be true to execute the version upgrade plan. Omit or false for plan-only output. |
dumpName | string | Optional dump directory name under profile.dumpHostPath for the upgrade backup. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
local_ydb_list_dumps
Read-only list of available tenant dumps under profile.dumpHostPath. Use before restore to choose a dumpName; it only reports top-level dump directories that contain the existing tenant dump folder.
| Parameter | Type | Description |
|---|---|---|
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
local_ydb_dump_tenant
Dump the configured tenant or a tenant-relative path using a local-ydb helper container on the static container network. It creates profile.dumpHostPath/dumpName, excludes .sys objects, writes the dump under dumpName/tenant, and without confirm=true returns the mkdir/helper-container plan only.
| Parameter | Type | Description |
|---|---|---|
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
confirm | boolean | Must be true to dump the tenant. Omit or false for plan-only output. |
dumpName | string | Optional dump directory name under profile.dumpHostPath. |
path | string | Relative YDB object or directory path to dump inside the configured tenant. Defaults to . for tenant-wide dump semantics. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
local_ydb_restore_tenant
Restore the configured tenant or destination path from a dump under profile.dumpHostPath, with optional post-restore scheme describe and bounded count-query verification. Use after bootstrap or rebuild when the target tenant is ready; without confirm=true this returns the restore plan and does not write data.
| Parameter | Type | Description |
|---|---|---|
dumpName * | string | Dump directory name under profile.dumpHostPath. |
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
confirm | boolean | Must be true to restore the tenant from the selected dump. Omit or false for plan-only output. |
countQueries | array | Optional bounded whole-table SELECT COUNT(*) or COUNT(1) queries to verify restored data after the restore command. |
describePaths | array | Optional tenant-relative paths to verify with scheme describe after the restore command. |
path | string | Destination directory path for YDB tools restore -p, relative to the configured tenant. Defaults to . for tenant root. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
local_ydb_prepare_auth_config
Generate a hardened YDB config from the current static-node config. Use before local_ydb_write_dynamic_auth_config and local_ydb_apply_auth_hardening; without confirm=true this returns the planned write only.
| Parameter | Type | Description |
|---|---|---|
configHostPath | string | Host path for the generated hardened config. Defaults to profile.authConfigPath when present. |
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
confirm | boolean | Must be true to write the hardened config file. Omit or false for plan-only output. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
sid | string | SID to place into viewer, monitoring, administration, and register_dynamic_node_allowed_sids. Defaults to profile.dynamicNodeAuthSid or root@builtin. |
local_ydb_write_dynamic_auth_config
Write the text-proto dynamic-node auth token file needed for mandatory-auth startup. Use after choosing the SID for auth hardening; without confirm=true this returns the planned file write only.
| Parameter | Type | Description |
|---|---|---|
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
confirm | boolean | Must be true to write the dynamic-node auth token file. Omit or false for plan-only output. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
sid | string | SID to store in both StaffApiUserToken and NodeRegistrationToken. |
tokenHostPath | string | Host path for the generated text-proto auth token file. Defaults to profile.dynamicNodeAuthTokenFile when present. |
local_ydb_apply_auth_hardening
Apply a reviewed hardened YDB config file only after a full check-only static profile and configured-binding compatibility preflight succeeds before any config or container mutation; immutable mismatches require destroy followed by bootstrap. It then restarts the static node and recreates and verifies every configured dynamic node in index order even when no dynamic-node token file is configured. Exact-container running stability and IC registration must both pass before metadata verification, and rollback uses restart or bootstrap reconciliation after restoring the static config. Use only aft…
| Parameter | Type | Description |
|---|---|---|
configHostPath | string | Reviewed config.yaml path on the selected target host. Defaults to profile.authConfigPath when present. |
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
confirm | boolean | Must be true to apply the auth hardening config and restart local-ydb. Omit or false for plan-only output. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
local_ydb_set_root_password
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.
| Parameter | Type | Description |
|---|---|---|
password * | string | 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 comple… |
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
confirm | boolean | Must be true to rotate and persist the root password. Omit or false for plan-only output. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
local_ydb_cleanup_storage
Delete only the explicitly supplied local-ydb host paths or Docker volumes. Use after inspecting local_ydb_storage_leftovers; without confirm=true this returns the cleanup plan and removes nothing.
| Parameter | Type | Description |
|---|---|---|
configPath | string | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |
confirm | boolean | Must be true to remove the explicitly supplied storage paths or Docker volumes. Omit or false for plan-only output. |
paths | array | Explicit host filesystem paths to remove. Nothing is deleted unless each path is supplied here and confirm=true. |
profile | string | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. |
volumes | array | Explicit Docker volume names to remove. Nothing is deleted unless each volume is supplied here and confirm=true. |