API/tools - better error message when looking up an action