local_ydb_restore_tenant
Restore a YDB tenant from a dump with optional post-restore schema and count verification. Use after tenant is ready; without confirm, returns a plan instead of writing data.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. | |
| 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. | |
| confirm | No | Must be true to restore the tenant from the selected dump. Omit or false for plan-only output. | |
| dumpName | Yes | Dump directory name under profile.dumpHostPath. | |
| path | No | Destination directory path for YDB tools restore -p, relative to the configured tenant. Defaults to . for tenant root. | |
| describePaths | No | Optional tenant-relative paths to verify with scheme describe after the restore command. | |
| countQueries | No | Optional bounded whole-table SELECT COUNT(*) or COUNT(1) queries to verify restored data after the restore command. |