A downhole tool that detects casing or tubing collars magnetically, providing depth references for correlation.