When edditing the HTML file you can easily add the TOC when you are using Word. It is much more flexible to do it this way. You do not have to use fixed tags and names. When added with Word you will have the TOC as soon as you create the Mobi file from the HTML. You can use the BookCreator Template to automate the task
https://www.mobileread.com/forums/showthread.php?t=28313