"A small amount of mucus in stool is usually nothing to worry about
. Stool often contains a small amount of mucus. Mucus is a jellylike substance that your intestines make to keep the lining of your colon moist and lubricated. But you should talk to a healthcare professional if you notice an increased amount of mucus in stool."
https://www.mayoclinic.org/mucus-in-stool/expert-answers/faq-20058262#:~:text=a%20small%20amount%20of%20mucus%20in%20stool%20is,notice%20an%20increased%20amount%20of%20mucus%20in%20stool.