Spicerack has a library for conftool entities generically, which allows you to edit things like dbconfig-instance entities.
But dbctl has very non-trivial logic implemented in the CLI tool itself for vital tasks like generating and commiting the mwconfig block.
Ideally instead of those being directly in the CLI implementation, they'd be exposed as a library that was used by the CLI tool, and then could also be used from Spicerack.