Why it matters
LLM tool calling must allowlist tools, validate arguments and require confirmation for side effects (send message, charge, delete).
Practical steps
- Allowlist tool names in code — not from the model output alone.
- JSON-schema validate every argument.
- Separate read-only tools from mutating tools.
- Require a human or explicit button confirm for destructive tools.
- Log tool name + hashed args + outcome.
Watch out for
- Letting the model invent a shell tool.
- Passing raw user text into SQL tools.