Question 26
Scenario: Customer Support Resolution Agent
An Agent SDK support agent handles returns, billing disputes and account issues through MCP tools like get_customer, lookup_order, process_refund and escalate_to_human. It aims to resolve most cases on first contact — and to know exactly when to hand off to a human.
Read the full scenario lessonYour send_notification tool calls third-party messaging APIs. When these services time out during delivery, you cannot determine whether the message was actually sent. Currently, the tool returns is_error: true with a generic “Notification failed” message for all timeouts. Production monitoring reveals agents automatically retry these failures, frequently causing users to receive duplicate notifications. How should you modify the error response?