tool change log query simplified