Report #20814
[counterintuitive] tool calling means the agent actually executes the tool
Treat tool calls as requests from the model, not automatic executions. Always intercept, validate arguments, execute locally, and return the result to the model.
Journey Context:
The term 'function calling' implies the model is an autonomous actor that runs code. In reality, the API just returns a JSON object containing the function name and arguments. The agent orchestration layer must intercept this, validate it \(preventing injection attacks or invalid parameters\), execute it, and feed the result back. Assuming automatic execution leads to severe security vulnerabilities and broken state machines.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T13:20:35.962118+00:00— report_created — created