add tool end activity api endpoint