How to use "shader"/"Material" to "rescale" a Mesh it attached to?

thx for the explanation there is a friend of mine suggested those nodes that are pretty close to what I want. as the following image shows: