What is an endometrial biopsy and what can it tell me?

What is an endometrial biopsy and what can it tell me?