UMP test is not unique here.
Since the pdf $f$ has monotone likelihood ratio (MLR) in $X_{(n)}$, by Karlin-Rubin theorem a UMP size $\alpha$ test for testing $H_0:\theta=\theta_0$ against $H_1:\theta<\theta_0$ is
$$\phi_0(x_1,\ldots,x_n)=\begin{cases}1&,\text{ if }x_{(n)}<\theta_0\alpha^{1/n} \\ 0&,\text{ otherwise }\end{cases}$$
Now whenever $\theta_1<\theta_0$, we have $$\frac{f_{\theta_1}(x_1,\ldots,x_n)}{f_{\theta_0}(x_1,\ldots,x_n)}=\begin{cases}\left(\frac{\theta_0}{\theta_1}\right)^n &,\text{ if }0<x_{(n)}\le \theta_1 \\ 0&,\text{ if }\theta_1<x_{(n)}\le \theta_0\end{cases}$$
So by NP lemma, a most powerful level $\alpha$ test $H_0$ against $H_1:\theta=\theta_1(<\theta_0)$ is of the form
$$\phi^*=\begin{cases}0 &,\text{ if }\theta_1<x_{(n)}\le \theta_0 \\\text{any value in }[0,1]&,\text{ otherwise }\end{cases}$$
such that $E_{\theta_0}\phi^*=\alpha$.
This yields a non-randomized MP test for $H_0$ versus $H_1:\theta<\theta_0$, namely
$$
\phi_1(x_1,\ldots,x_n)=\begin{cases}0&,\text{ if }\theta_1<x_{(n)}\le \theta_0 \\ 0 &,\text{ if }\theta_0\alpha^{1/n}<x_{(n)}\le \theta_1 \\ 1 &,\text{ otherwise }\end{cases}
$$
The corresponding UMP test is
$$\phi_1(x_1,\ldots,x_n)=\begin{cases}0&,\text{ if }\theta_0\alpha^{1/n}<x_{(n)}\le \theta_0 \\ 1&,\text{ otherwise }\end{cases}$$
Also see Most powerful test of simple vs. simple in $\mathrm{Unif}[0, \theta]$.