The main functions of a shaper machine are external machining operations, which include producing flat surfaces, keyways, slots, and other external profiles. Although some shaper machines might have attachments or accessories to help with internal machining, like internal keyways, the primary focus is on external machining.