If the given value is out of range of the valid interval, specified with the Parameter annotation, the error message should explain the problem better.
The message currently says, for example, "Value for 'Number of neighbours' is out of range (1,*]"
Especially, the syntax for the range should be explained.
( = exluding the value
] = including the value
*= max value (depending on the data type)
This has been reported in: