Glutamine synthetase that catalyzes the ATP-dependent conversion of glutamate and ammonia to glutamine (PubMed:16267323, PubMed:30158707, PubMed:36289327). Its role depends on tissue localization: in the brain, it regulates the levels of toxic ammonia and converts neurotoxic glutamate to harmless glutamine, whereas in the liver, it is one of the enzymes responsible for the removal of ammonia (By similarity). Essential for proliferation of fetal skin fibroblasts (PubMed:18662667). Independently of its glutamine synthetase activity, required for endothelial cell migration during vascular development: acts by regulating membrane localization and activation of the GTPase RHOJ, possibly by promoting RHOJ palmitoylation (PubMed:30158707). May act as a palmitoyltransferase for RHOJ: able to autopalmitoylate and then transfer the palmitoyl group to RHOJ (PubMed:30158707). Plays a role in ribosomal 40S subunit biogenesis (PubMed:26711351). Through the interaction with BEST2, inhibits BEST2 channel activity by affecting the gating at the aperture in the absence of intracellular L-glutamate, but sensitizes BEST2 to intracellular L-glutamate, which promotes the opening of BEST2 and thus relieves its inhibitory effect on BEST2 (PubMed:36289327).