The best way to prevent gluey mashed potatoes is to not over mix them. Mixing the potatoes until just combined with the other ingredients will make the perfect mashed potatoes.