Production logs show inconsistent error handling: when lookup_order fails, the agent sometimes retries 5+ times (wasteful when the order ID does not exist), sometimes escalates immediately (premature for temporary network issues), and sometimes asks users for clarification (inappropriate when the issue is a backend permission error). Investigation shows that your MCP tool returns uniform error responses: \{"isError": true, "content": [\{"type": "text", "text": "Operation failed"\}]\}. The agent cannot differentiate among error types. What is the most effective improvement?
Community Discussion
No comments yet. Be the first to start the discussion!
Community Discussion