The best way to pray for mental clarity is to use God's word. Turning to the Psalms is a great way to put all sorts of emotions into words.