I would be inclined to spray as much of the mechanism as is visible with something like a silicon lubricant.
Actually, if you remove the switch panel/interior light there should be a little allen crank that can be used to manually move the roof. Have a go with the manual override to see how stiff the mechanism is. You then have a decision point- is the mechanism stiff or is the motor/electrics weak.
Good luck
Keith