Common question asked is what motors and detectors are defined? For motors, the wa command is available. For everything else, it is a harder search.
Generalize with a function that makes a best effort to show what is known. Show PV or prefix, if available.