well it could be he is extracting his own anal glands....that may be where the mucus is coming from. you can check with your vet but i think as long as his stool is nice in formed you are ok. when they scoot their bum on the floor that usually means they need their anal glands done which for yorkies is common.  
