A carbon-nitrogen ligase that catalyzes the formation of 10-formyltetrahydrofolate from formate and tetrahydrofolate in the presence of ATP. In higher eukaryotes the enzyme also contains METHYLENETETRAHYDROFOLATE DEHYDROGENASE (NADP+) and METHENYLTETRAHYDROFOLATE CYCLOHYDROLASE activity.