Blood tests are pretty useless for magnesium. The deficiency is in cells, magnesium level in blood is not a good test for that deficiency.
wouldn't a cell deficiency lead to it depleting also the magnesium levels in the blood, simply based on osmosis?
They have blood tests for both (serum or RBC):
The Magnesium RBC Test measures magnesium inside red blood cells, providing a more accurate assessment of magnesium status than serum tests.