Unfortunately, that is exactly how material functions work. I too wish we could make parameters that show up in the node similar to the other math nodes. That would be a really nice addition that would save time and clarity. I’m not sure if there is a place to put feature requests on these forums, but that would be a good one.