When performing clustering with an algorithm such as K-means, it's possible to construct a plot that shows the intra cluster variability according to the number of clusters to see if there is an elbow that suggest an optimal number of clusters.
However, when working with a dissimilarity matrix (with all values in the range 0-1), it's not so obvious how to measure the quality of clusters obtained. Suppose I had a dataset with a mixture of numerical, categorical and ordinal variables, so I couldn't calculate the loss function with which K-means works, for example.
In this case, I can run K-medoids or hierarchical clustering, but how can I produce some metric that could suggest the number of clusters, analog to the inter/intra variability of algorithms that work with only numeric data?
when working with a dissimilarity matrix... it's not so obvious how to measure the quality of clusters obtained
I would not concur. Generally, it makes no difference how was the input. Many clustering criterions can be computed for either type of input. Search internet (starting with reading wikipedia article "Clustering") and this site for "clustering criterions", "cluster validity indices", "best number of clusters". $\endgroup$