Get Your Dog Care Questions Answered by Experts
Any worms in dog poop are cause for concern. It would be impossible to tell you what kind your dog has unless we can see them. Even then, they need to be analyzed under a microscope so you can get the right medication.
At this point, you need to take a fecal sample to your vet or take the dog in for a fecal exam. The vet will analyze the fecal matter and will give you the right medication. All wormers don't work for all worms so treating with an over the counter medication could be costly and won't work for everything.
Your next step is to see the vet.
The anal glands have nothing to do with the worms.
I suggest that you make a vet appointment tomorrow to have the anal glands expressed so that she can get some comfort in that area.
You also need to have them do a fecal exam and give you a dewormer.
Let me know if you still have questions.