This tool is first developed by Shawn for XSDB maintenance
You can check https://hypernews.cern.ch/HyperNews/CMS/get/generators/3575.html for XSDB api
xsec_calc_auto is for batch search and calcultion. It is also developed for the XSDB update. You can check the readme inside.