fn validate_optional_i32_range( tool: &str, field: &str, value: Option<i32>, min: i32, max: i32, ) -> Result<(), String>