Dear Alex,

I don’t know what you want exactly.
I hope that it may help.

\startMPpage
def myLabel(expr xpos, ypos)(text t) =
dotlabel.top(textext(t),(xpos,ypos));
enddef;
myLabel(1cm, 1cm, "Position");
\stoppage

Good luck.

Best regards,

Dalyoung