We demonstrate the detection of picoliter amounts of water and triethylenetetramine by a magnetic-resonance-force-microscopy (MRFM) setup operated in the gradient-on-cantilever geometry at room temperature. A magnetic field gradient is produced by a ferromagnetic SmCo particle glued to the tip of a micromechanical resonator (cantilever). The liquids are enclosed in a micro-capillary to protect them from the high vacuum environment needed for sensitive detection. We describe simple spectroscopic experiments as proton T1 - relaxation, Rabi nutation curves and Hahn-echo measurements.