This test is used to evaluate magnesium levels in blood and is ordered in case of symptoms such as weakness, irritability, cardiac arrhythmia, nausea, and/or diarrhea that may be due to too much or too little magnesium, abnormal calcium or potassium levels.