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, ...