How to create rule to change user role based on points (using User Points module)? I'm using the User Points module which allow me to grant points to user. So far so good.

I need to create a rule to fire this condition/action: When user points are granted, then check if the user has more than 10 points. If so then add the "Master" role to this user.

I try using the Rules Condition "Data comparison", but I can't find the value something like "total points of the user".

Can I do this in any way?
Have you tried the user points contrib module. I am specifically referring to 

userpoints_role

Users join/leave roles as they earn/lose certain points threshold.