Ontify
Catalysis of the reaction: L(or D)-glutamine + D-glutamyl-peptide = NH3 + 5-glutamyl-D-glutamyl-peptide.