Mastering Claude Tool API: A Deep Dive for Developers