Here's the tool. Use it on .MDG or .MDL file. It will only work with skeletal model files. To get the skeleton structure and bone names, it needs any .ANM file of that character. Put it in the same folder. If there will be many .anm files from different characters in the same folder, the result is non-predictable.