Condition-based tool management for small batch production