I usually try to avoid using a rotary tool with hot glue as in my experience it gunks up the attachments rather quickly unless you're using something like a metal cutting disk (Of course just my novice foam experience). What type of attachments are you thinking of using?
Heating it and squishing it into place might not be the worst idea but I'll defer that to the real foam craftsmen here.