An agricultural machine to rake a mass of hay, or other agricultural product, including at least a trailer-mounted frame, and an arm on which a plurality of operating tools are rotatably mounted. The arm is constrained to the frame so as to selectively move between a first operating condition in which the operating tools are in cooperation with the ground, and a second inactive condition in which the operating tools are raised from the ground in a position substantially parallel to the ground itself. The agricultural machine includes articulation members, interposed between the frame and the arm and includes a first positioning portion attached to the frame and a second positioning portion to which the arm is constrained. The first positioning portion and the second positioning portion are pivoted with respect to each other by elements of an articulation pin, in order to move the arm between the two conditions, operating and inactive.