Jonathan,
You can pass and empty string "" or {} as the sql argument. Makes it clear the query is in an XQL file.
Custom tags? I am not sure what you mean.
Try this: http://dev.openacs.org/doc/acs-templating/tagref/
This doc is also installed on your local copy of OpenACS 4.