There a some stories Chazal bring about men who were potentially going to be mashiach. A couple that come to mind are Bar Kochba (who Rabbi Akiva said would be Mashiach) and the man Eliyahu Hanavi sends R Yehoshua Ben Levi to see (Sanhedrin 98a).
These men seem to have very little in common. Bar Kochba was a great Warrior and leader of men, whereas RYB”L’s man seems to be an old sickly beggar or something of the kind.
My question is, are there any specific requirements brought by Chazal or others that Mashiach must possess in terms of character traits/personality? And if not, how is it determined who’s worthy of being Mashiach?
I’m specifically looking for answers in regards to Mashiach’s character, not a description of the actions and accomplishments he’s destined to fulfill as those are relatively well known.
(This question is in regards to Mashiach Ben David, who’s most likely the one the stories are referring to)