Magnesium is the fulcrum point that calcium and alkalinity are balanced on either side of.
In cases with high calcium and low alkalinity, the fulcrum is most often offset towards calcium which helps to create that imbalance. In order to balance out the teeter totter of carbs/bi-carbs, you will be best off adding weight to the alkalinity side while taking weight off of the calcium side. As the weight comes off the calcium side, the fulcrum will also naturally shift towards the opposite allowing your alkalinity to get a boost towards the safe range.
Conversely, adding magnesium to a tank with high calcium and low alkalinity will move the fulcrum towards calcium increasing the saturation point and increasing the proportions in which buffer must be added to counter balance the carb/bi-carb ratio.
When moving calcium and alkalinity either up or down together, it can be helpful to move the fulcrum with them, but when you are attempting to re-balance the carb/bi-carb ratio, moving the fulcrum will create less predictable results.