Text this: Metric-affine cosmological models and the inverse problem of the calculus of variations. Part II: Variational bootstrapping of the $$\Lambda $$ Λ CDM model