Term: a few slices short of a loaf of bread
Example: weird bus dude: hey wanna be my friend????? (waves spastically) b: can't say i do s: well that guy is a few slices short of a loaf of bread
Definition: somebody who's not quite mentally competent similarly you may use the phrase, a few fries short of a happy meal