A medial magma is a set $M$ with a binary operation $*$ satisfying $$(a*b)*(c*d) = (a*c)*(b*d)$$ for all $a,b,c,d \in M$. Medial magmas constitute a finitary algebraic category $\mathsf{Med}$, therefore there is a functor $M : \mathsf{Set} \to \mathsf{Med}$ which sends a set $X$ to the free medial magma $M(X)$ over $X$. Elements of $M(X)$ can be seen as equivalence classes of oriented non-empty binary trees whose leaves are marked with elements of $X$, where two such trees are equivalent if the one can be reached from the other by a finite number of steps, where each steps looks as follows:

Now I wonder if there is a more explicit description of the underlying set of $M(X)$, or a specific system of representatives. Can we simplify it? For example, when $X=\{\star\}$, we have no markings; what is a specific system of representatives? I also wonder if these free medial magmas are studied or used anywhere in the literature.