The phrase "nut job" is an informal way to describe someone who is considered eccentric, strange, or mentally unstable.