A multifunctional calcium-binding protein that acts as a molecular chaperone for glycoproteins in the endoplasmic reticulum (ER) of cells. It also serves as a storage protein for calcium ions in the ER and may regulate the transcription of certain genes in the nucleus.