Catalysis of the reaction: D-glutamate + ATP + UDP-N-acetylmuramoyl-L-alanine = ADP + 2 H+ + phosphate + UDP-N-acetylmuramoyl-L-alanyl-D-glutamate.
UDP-N-acetylmuramoyl-L-alanyl-D-glutamate synthetase activity