What does it mean if someone calls you a tool?

A tool is something that is used to do work. A person who is "a tool" is someone who is controlled by someone else, and is doing some kind of dirty work that the other person does not want to do.