This test measures the amount of magnesium in your blood. Too little or too much of this mineral can mean you have certain health problems.