I would say your model is to dumb. You mainly have two options if you want to use tool calling in good way.
Try to make a better prompt (You will likely struggle but could work, this is a relatively painful approach in my experience)
Use a better model like R1 or A Foundation Model (Like GPT 4.1 etc)
I had similar errors and upgrading model solved most problems for me.