The model keeps misusing a tool you exposed as doStuff(a, b) with no parameter descriptions.
- AKeep the name doStuff but add a long paragraph to the system prompt explaining in prose what a and b usually mean
- BTell the model in the prompt to “use tools carefully”
- CRename it to a descriptive name with clearly named, documented parameters
- 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 Way of the Agent
- Course programThe first three modules are free: start in the browser or the app, no card needed.
- Library: guides, skills and promptsReady prompt templates, grouped into collections.
- AI ChroniclesSourced stories from the history of AI.
- ConceptsPlain-language explainers of agent engineering.
- Learn AI agentsApps and courses for learning AI agents, compared honestly.
Real situations from building agents - with the answer and why.
Solve a new one every day on the Path