GO:0004356:   glutamate-ammonia ligase activity
Catalysis of the reaction: L-glutamate + ATP + NH(3) = L-glutamine + ADP + 2 H(+) + phosphate.