Anthropic's tool use documentation states: "Write instructive error messages. Instead of generic errors like 'failed', include what went wrong and what Claude should try next." A billing dispute agent uses lookup_order, which catches all exceptions and returns a tool_result with is_error:
true and the message "Tool execution failed". Monitoring shows two failure modes: the agent retries the identical call until hitting the turn limit, or it immediately calls escalate_to_human without trying alternative tools. Which change follows the documented recommendation and gives Claude the information it needs to select the correct recovery action for each error type?
Correct Answer: D
Specific error messages tell Claude both what failed and the appropriate next action. A missing order should trigger an alternative lookup path, while a transient timeout may justify retrying. This directly follows Anthropic's recommendation for instructive tool errors.