Tool Calling: The Model Proposes, the System Executes
Learning objective: explain what actually happens when a model "uses a tool", so you know where control and logging can be placed. This module supports 105-CLO2: decomposing information tasks and defining tool access permissions.
- The model reads the task and the list of allowed tools
- It proposes a call: tool name and parameters
- The runtime checks the call against the allowlist and permissions
- The runtime executes it and logs the call
- The result returns to the model as data
- The model never touches the system directly; your runtime decides whether a proposed call runs
- Each tool needs a clear description, defined inputs and a defined output, or the model will guess
- Every call and its result should be logged with time, parameters and status
- A tool that changes something outside the team (publish, send, trade) is a different class from a tool that only reads
In tool calling, where is the best place to enforce what a tool may do?