The prostaglandins produced by COX-2 are involved in inflammation and pain response in different tissues in the body.