What does the word grammatical mean?

Adjective
Of or relating to grammar.
Well formed; in accordance with the productive rules of the grammar of a language