Liverpool have agreed a deal to sign Kolo Toure when his current contract with Manchester City expires on July 1.