Mucus is normally present in the intestinal tract and, when you see it, it looks almost gelatinous and there might be blood present as well. This indicates gastrointestinal upset.
If it doesn't improve after 2 days, you should see your vet to rule out a bigger problem.
Let me know if you have more questions.
