A serum magnesium test measures the level of magnesium in the blood.ncreased levels of magnesium may be seen with kidney disease because magnesium is excreted by the kidneys. A low magnesium level can be a sign of diabetes, some digestive problems, malnourishment, or long-term (chronic) alcoholism. Lower magnesium levels during pregnancy may mean preeclampsia.