How should tools report errors?
IntermediateConceptTool use & function calling
Answer
Return clear, actionable error messages instead of stack traces: what went wrong and how to fix the input, for example "service 'paymnts' not found; did you mean 'payments'?". The model can then retry correctly. Also log the full error for engineers.