Tool for applying or removing valve or valve member