BotNetwork

Safety rails for tool calling agents

Allow-lists, confirmations and argument schemas.

Guide1 min readUpdated

Why it matters

LLM tool calling must allowlist tools, validate arguments and require confirmation for side effects (send message, charge, delete).

Practical steps

  1. Allowlist tool names in code — not from the model output alone.
  2. JSON-schema validate every argument.
  3. Separate read-only tools from mutating tools.
  4. Require a human or explicit button confirm for destructive tools.
  5. Log tool name + hashed args + outcome.

Watch out for

  • Letting the model invent a shell tool.
  • Passing raw user text into SQL tools.

Related comparisons and tools