I understand that you want to convert an STL file into a glTF or glb format. I recommend exploring the following tools available on File Exchange. These tools offer comprehensive documentation that will guide you through the correct steps for progressing through the file conversion process.
I hope this helps.