Let us consider the grammatical function of 'boy' in this sentence. This is the 'subject complement of am'. Therefore, if you are asked, 'What is the grammatical function of boy?', you should answer, ...
In the article on parts of speech, we learned that words have categories (nouns, verbs, adjectives, etc.). And I have repeatedly warned you: "Parts of speech (word types)" and "sentence elements ...