(A) Possible Pleas. Subject to the rules in this subchapter, a defendant may plead not guilty, guilty, nolo contendere, guilty but mentally ill, or not guilty by reason of insanity. If the defendant refuses to plead or stands mute, or the court, pursuant to the rules, refuses to accept the defendant’s plea, the court must enter a not guilty plea on the record. A plea of not guilty places in issue every material allegation in the information and permits the defendant to raise any defense not otherwise waived.
(B) Pleas That Require the Court’s Consent. A defendant may enter a plea of nolo contendere only with the consent of the court.
(C) Pleas That Require the Consent of the Court and the Prosecutor. A defendant may enter the following pleas only with the consent of the court and the prosecutor:
(1) A defendant who has asserted an insanity defense may enter a plea of guilty but mentally ill or a plea of not guilty by reason of insanity. Before such a plea may be entered, the defendant must comply with the examination required by law.
(2) A defendant may enter a conditional plea of guilty, nolo contendere, guilty but mentally ill, or not guilty by reason of insanity. A conditional plea preserves for appeal a specified pretrial ruling or rulings notwithstanding the plea-based judgment and entitles the defendant to withdraw the plea if a specified pretrial ruling is overturned on appeal. The ruling or rulings as to which the defendant reserves the right to appeal must be specified orally on the record or in a writing made a part of the record. The appeal is by application for leave to appeal only.
(D) Pleas to Lesser Charges. The court may not accept a plea to an offense other than the one charged without the consent of the prosecutor.