IF it is an ongoing concern you should make an appointment with your doctor. Its usually caused by something they ate. If it continues make sure to exclude anything serious.
Mucous is a normal component of stool, but should not be present in sufficient quantity to be visible. In a toddler, it is best to see the pediatrician.
Small amounts of mucus in stool is normal, but I would definitely take your child to the doctor if there is a large visible amount. Could be bacterial infection, etc.