An underground sampling tool (HTMS) for underground water analysis of both quality and flow rate, providing the information required to perform an underground drilling and obtain uncontaminated water for crop irrigation, said tool comprising: a housing for the electronic and electrical controls, a housing for the hydraulic means controlled by the electric and electronic portion of the tool, a test body consisting of a variety of hydraulic circuits for operating the various operating valves of the tool, wherein said test body further comprises: a rear shoe on an axial axis of the tool, wherein said rear shoe is driven by two telescoping pistons simultaneously that arise from the inside of the tool when driven by a signal of a surface equipment operably enabled for this purpose, and a front shoe, driven by several pistons which are housed below the front shoe, not shown in the figures, and driven by one or more electro-pneumatic devices acting jointly and generating a progressive forward or backward movement of