throw error if MainTool does not have tool

Issue #64