What the model cannot know
"How much diesel is at E14-02?" depends on today's stock. No amount of training contains it. Without a tool, the model can only guess, and it will guess fluently.
A call, not an action
Given a list of tools and their arguments, the model replies with a structured call: { "tool": "get_stock", "site": "E14-02" }. That is text. Nothing has happened yet.
Your code runs it
Your application reads the call, checks it, and runs the real function. This is the safety line: the model never holds credentials or touches the database. It only proposes.
Back to plain language
The result, { "diesel_l": 12400 }, goes back to the model, which writes "12,400 litres of diesel." The number came from the system. The sentence came from the model.