🔥 3-day streak
Claude Certified Associate (Foundations)129 / 150
Question 129 of 150

You are building a weather assistant. Claude calls your get_forecast tool, but the underlying weather API returns successfully with an empty result set because the requested city was not found in its database. The API itself did not throw an error — it simply returned no matching data. How should you handle this in the tool_result you send back to Claude?

Reviewed for accuracy · Report an issueNext question