Asked about How tool calling works
How many API calls does one tool-using question take?
An answer that works
At least two. One where the model requests the tool, one where it sees the result and answers. More if it chains several tools. This is why agents are slower and more expensive than a single completion.
Reading an answer is not being able to give one. The section that teaches this is How tool calling works, 3 hours of Tool calling.
Learn this properlyAlso asked about Tool calling
Walk me through what happens when a model calls a tool.What makes a good tool description?Why use an enum in a parameter schema?A tool throws an exception. What should happen?How do you handle a model requesting several tools in one turn?Why does the size of a tool result matter?How do you stop an agent taking a destructive action?