Russell
There is already a procedure to tell you all the attributes for a type.
package_object_attribute_list is a private procedure of acs-subsite in package-procs.tcl. No this does not make any sense, but it does come in handy.
You will probably find some other procedures that are useful for what you are doing in there as well.