Tool calls are contracts
A model can suggest a function name and arguments, but the application still owns validation, authorization, execution, error handling, and audit logging.
- Validate every argument on the server side.
- Require user or policy approval for irreversible actions.
- Log model request, tool call, result, and final response as one trace.