Enables magnesium ion binding activity and phosphatase activity. Involved in glycerol biosynthetic process; glycerophospholipid metabolic process; and peptidyl-tyrosine dephosphorylation. Predicted to be active in cytoplasm. Orthologous to human PGP (phosphoglycolate phosphatase). [provided by Alliance of Genome Resources, Apr 2022]