Tool Integrity: Preventing Hallucinated Function Calls

Reliability · updated Sun Feb 22

Five controls to ensure agents only call tools that actually exist.

Steps

  1. Inject a current tool manifest and forbid calls outside the list.
  2. Normalize common hallucinated tool names to real function names.
  3. Validate tool calls against a local registry before execution.
  4. Require a safe fallback response when a needed tool is unavailable.
  5. Limit the toolset to only what the current task phase requires.

view raw JSON →