The ambiguous formulations of the Torah regarding the King make it unclear whether appointing a King is commanded or permissible. Disagreements on this matter span from the time of the Sages to Medieval commentators. The ambiguity points to a need of a consensus by the nation.