GO:0030272:   5-formyltetrahydrofolate cyclo-ligase activity
Catalysis of the reaction: 5-formyltetrahydrofolate + ATP = 5,10-methenyltetrahydrofolate + ADP + H(+) + phosphate.