We introduce a degree-based variable topological index inspired on the Stolarsky mean (known as the generalization of the logarithmic mean). We name this new index as the Stolarsky-Puebla index: SP (G) = Puv2E(G) du, if du = dv, and SP (G) = Puv2E(G) [(du dv ) = ( (du dv)]1=( 1), otherwise. Here, uv denotes the edge of the network G connecting the vertices u and v, du is the degree of the vertex u, and 2 Rnf0; 1g. We also consider the limiting cases SP !0(G) and SP !1(G) that we name as the logarithmic-mean index and the identric-mean index, respectively. Indeed, for given values of , the Stolarsky-Puebla index reproduces well-known topological indices such as the reciprocal Randic index, the first Zagreb index, and several mean Sombor indices. Moreover, we apply these indices to random networks and demonstrate that hSP (G)i, normalized to the order of the network, scale with the corresponding average degree hdi. Some mathematical properties of the Stolarsky-Puebla index are also discussed.