Nukes are primarily for a deterrent. A deterrent means a capability that stops the enemy from attacking you because of the knowledge that you have fearsome ability to harm. Grade of provocation is simple, an attempted or actual nuclear attack, or solid evidence that a nuclear attack is imminent in very near future.