A messenger from the gods
He came to give a message on behalf of the gods to the party:
He also appears when one of the prophecies is revealed to the party. As well as when Thorin calls upon the angels of Pelor to help them in the midst of battle. He never smiles.
It actually seems that Malakiy was only a mask for Pelor to use to talk to the Heroes of the Portal.