I am not sure if this is an answer to your question, because you didn't post an example, but i.e. within the events module there is a tcl file called venues-ae.tcl, which means that you can add and edit an event venue with this file. You can find it in events/admin/venues-ae.tcl I suppose...