Measuring a tool