CM's tool set is extensible: new tools can be added by writing a few lines of ML code. The necessary hooks for this are provided by a structure Tools which is exported by the $smlnj/cm/tools.cm library.