The max_iter is not working as expected

What’s happening is that the tools are being invoked exactly twice on every tool usage. This bug was reported in this issue.