Your syntax is a bit messed up. I assume %f is just a numeric value? Then why all the $+() and $(,2)?
on *:TEXT:cookie:#: if (!%f) { inc -u5 %f | .describe $chan gives $nick a cookie }
Also, do you want the . in front of describe? That makes it silent so you do not see your describe/action.