"A friend" What is the grammatical name?

Well, "a friend" would be classified as a noun phrase. Or you could also call it your personal therapist, your partner in crime, or your designated snack buddy, whatever you prefer!

The grammatical name for "a friend" is a noun phrase.