ATP + L-glutamate + NH4(+) = ADP + H(+) + L-glutamine + phosphate The activity of this enzyme is controlled by adenylation under conditions of abundant glutamine. The fully adenylated enzyme complex is inactive (By similarity). Belongs to the glutamine synthetase family.