Terms of reference

What is a terms of reference and when to use one?