Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,13 @@ public static async Task<string> ToolWithProgress(
}

/// <summary>
/// Error handling tool - intentionally throws an error for testing
/// Error handling tool - returns a success message for testing
Comment thread
eiriktsarpalis marked this conversation as resolved.
Outdated
/// </summary>
[McpServerTool(Name = "test_error_handling")]
[Description("Tests error response handling")]
[Description("Tests tool that returns success message")]
public static string ErrorHandling()
{
throw new Exception("This tool intentionally returns an error for testing");
return "Error handling test passed (no exception thrown)";
}

/// <summary>
Expand Down