Method FromError
FromError(string)
Creates a failed result. The message should state what went wrong and, where possible, the corrective action, so the caller can recover without a round trip to the user.
public static McpToolResult FromError(string message)
Parameters
messagestringA corrective, human-readable explanation.