Catalysis of the reaction: ATP + formate + N1-(5-phospho-beta-D-ribosyl)glycinamide = ADP + H+ + N2-formyl-N1-(5-phospho-beta-D-ribosyl)glycinamide + phosphate.
formate-dependent GAR transformylase activity