"This test measures the amount of magnesium in your urine. Magnesium is needed for your nervous, gastrointestinal, and cardiovascular systems to work normally. Your body gets magnesium from certain foods.This test is commonly ordered to monitor diet, kidney and endocrine function, and overall health.A significant deviation from the normal range may require further evaluation by your physician."