There is a QueryStateVariable
action in very early UPnP specs but it was deprecated and current spec does not allow control points to use it, and service developers must define variable-specific query actions.
If the service you work with is very old (I believe pre-1.0), then you might still have to use that method, but please check first if there are proper variable-specific methods first. I'm not too familiar with Cling, but it does seem to have a QueryStateVariableAction.