local_ydb_remove_dynamic_nodes
Remove per-suffix dynamic nodes one at a time and confirm each node disappears from the nodelist. Use plan mode to review commands and prevent unwanted drift.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of dynamic nodes to remove when containers and nodeIds are omitted. Defaults to 1. | |
| confirm | No | Must be true to execute planned commands. Omit or false for plan-only output. | |
| nodeIds | No | 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 | 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. | |
| containers | No | Explicit suffix dynamic-node container names to remove. Configured suffixes can be selected and become runtime drift; the profile's primary dynamicContainer remains protected. | |
| startIndex | No | 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 startIndex always overrides either default. |