Were court jesters ever a real thing? What exactly did they do? What nations had them, and how did the practice begin?

by Atra116
AldoTheeApache

I've got a follow up question:

What did all the clothing and look represent and who or what was it based on? i.e., the odd jingle bell cap, the long bell shoes etc, the big nose? Example here.