Disclosed are carboxamide compounds represented by general formula (I). An example of a compound of formula (I) is N-(cyclopentylmethyl)-1-methyl-1H-indole-3-carboxamide. The compounds are used to treat diseases such as depression, anxiety, bipolar disorder, schizophrenia, pain, inflammatory processes, and degenerative conditions.