Here are some ways you could say it, depending on the context:
Formal:
* 我是一个好孩子。 (Wǒ shì yī gè hǎo háizi.) - This literally translates to "I am a good child," which is a general way to say you are well-behaved.
* 我很乖。(Wǒ hěn guāi.) - This means "I am very obedient" and emphasizes your compliance with rules.
Informal:
* 我很听话。(Wǒ hěn tīnghuà.) - This means "I am very obedient" and emphasizes your willingness to listen.
* 我是一个好学生/好朋友。(Wǒ shì yī gè hǎo xuéshēng/hǎo péngyou.) - This means "I am a good student/friend" and emphasizes your positive qualities in a specific role.
It's also important to consider the person you're talking to and the situation. If you're speaking to a child, you might use a more playful tone and say something like:
* 我很棒! (Wǒ hěn bàng!) - This means "I am awesome!" and is a positive affirmation.
Ultimately, the best way to express "I am a good boy" in Mandarin depends on the specific context and your intended meaning.