Tool design · 2026-08-25

The model keeps misusing a tool you exposed as doStuff(a, b) with no parameter descriptions.

  1. AKeep the name doStuff but add a long paragraph to the system prompt explaining in prose what a and b usually mean
  2. BTell the model in the prompt to “use tools carefully”
  3. CRename it to a descriptive name with clearly named, documented parameters
  4. DLower the temperature so it picks arguments more precisely

Answer: C

Rename it to a descriptive name with clearly named, documented parameters

Why

A tool is an API for the model. Self-describing names and documented parameters remove the ambiguity that causes misuse - far more reliable than prompt pleading.

More on this topic

More on Way of the Agent

Real situations from building agents - with the answer and why.

Solve a new one every day on the Path