@perennialloner,
Either is correct in this instance, but in general, "purpose of" is used far more often than "purpose in".
It is also simpler, since if you are going to use "purpose in", a verb must follow. That is not the case with "purpose of".
You cannot say, "What is the purpose in the handsaw?". You can say, "What is the purpose of the handsaw?".