The Magnesium, serum test is ordered on patients who show signs of magnesium deficiency. These symptoms can include weakness in muscles, seizures, cramping, twitching, or confusion. This test can also be ordered on patients who are currently taking medications that can cause excretion of magnesium through the kidneys.