Summer Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: ac4s65

When implementing your lookup_order MCP tool, the backend sometimes returns errors—for example, “Order not found”...

When implementing your lookup_order MCP tool, the backend sometimes returns errors—for example, “Order not found” or temporary database failures. What is the correct pattern for communicating these errors back to the agent?

A.

Return the error message in the tool-result content with the isError flag set to true.

B.

Return a successful response with a status field indicating the error type.

C.

Log the error server-side and return an empty result to avoid confusing the model.

D.

Throw an exception from the tool handler so the agent framework can catch and log it.

CCAR-F PDF/Engine
  • Printable Format
  • Value of Money
  • 100% Pass Assurance
  • Verified Answers
  • Researched by Industry Experts
  • Based on Real Exams Scenarios
  • 100% Real Questions
buy now CCAR-F pdf
Get 65% Discount on All Products, Use Coupon: "ac4s65"