Magnesium levels should be measured via a red blood cell magnesium test.