You are correct. The rule you would develop to use these variables would need to be a Generic Rule.
The rule transform can implement variables within the attributes list. These variables can be defined as static string values or even as the results of other transforms. Any variables defined here are passed to the Generic rule and are available for calculation within that code.
Another example from our Cloud Services Deployment Utility Rule is below. The rule takes in operation and numChars as variables.