Involved in the production of the root hair deformation (HAD) factor specifically on medicago. D-fructose 6-phosphate + L-glutamine = D-glucosamine 6-phosphate + L-glutamate In response to a plant signal such as luteolin via the regulatory gene NodD.