After a bit more poking around, I think this is better:
set meta(viewport) [::xo::cc get_parameter viewport ""]
This avoids reaching under the skirt of the API, and also provides a means to grab the meta data if it exists, but to avoid throwing an error if it doesn't.