Working over various monoid-graded Lie algebras and in arbitrary dimension, we express scattering diagrams and theta functions in terms of counts of tropical curves/disks, weighted by multiplicities given in terms of iterated Lie brackets. Over the tropical vertex group, already important in the Gross-Siebert mirror symmetry program, our tropical curve counts give descendant log Gromov-Witten invariants. Upcoming work will use this to prove the Gross-Hacking-Keel Frobenius structure conjecture for cluster varieties. The non-degeneracy of the trace-pairing for this conjecture is also proven here. Working over the quantum torus algebra yields theta functions for quantum cluster varieties, and our tropical description sets up for geometric interpretations of these. As an immediate application, we prove the quantum Frobenius conjecture of [FG09]. We also prove a refined version of the [CPS] result on consistency of theta functions.