@Tool(description = "Calculate the remainder when one number is divided by another")
    public String modulus(double a, double b) {
        if (b == 0) {
            return "Error: Cannot divide by zero";
        }
        double result = a % b;
        return formatResult(a, "%", b, result);
    }
Calculate the modulus (remainder) of division
@param a The dividend
@param b The divisor
@return The remainder of the division
03-GettingStarted/samples/java/calculator/src/main/java/com/microsoft/mcp/sample/server/service/CalculatorService.java