Quite simply, an invention must be useful. A person cannot get a patent for an invention, product or process that is not useful. This is a relatively easy requirement to satisfy. In short:
The patent application should describe a specific, substantial and credible use for the invention; and
The invention should operate as claimed in the application.