Strictly speaking a function can be regarded as a quadruple of
A label or name, like $\sin$.
A domain $D$.
A codomain $C$.
A mapping that for each element of $D$ tells how to "compute" its image in $C$.
Functions with variable number of arguments can be convenient, there are several ways to approach them.
I. Use different functions with the same label
(Ab)using notation, you could have functions with the same name indexed by their number of arguments like:
$$\gcd\nolimits_n:\Bbb Z^n\to\Bbb Z$$
defined recursively as
$$\gcd\nolimits_n(x_1,\dots,x_n)=\begin{cases}
x_1, &\text{ if } n=1\\
\gcd(x_1, x_2), &\text{ if } n=2\\
\gcd(\gcd_\nolimits{n-1}(x_1,\dots, x_{n-1}), x_n), &\text{ if } n>2\\
\end{cases}$$
and then, as a matter of convenience / lazyness, drop the index and just write $\gcd(a,b,c,d)$ etc. where it's unabgiguously clear that you mean the specimen $\gcd_4$.
II. Use a domain that contains all possible $n$-tuples
You can use a domain that contais all possible tuples of values:
$$D^\cup=\bigcup_{n\in\Bbb N} D = D\cup D^2\cup D^3\cup\cdots$$
The $\gcd$-example from above would be $\gcd:\Bbb Z^\cup\to\Bbb Z$. Notice however, that we didn't yet define the function law, and doing it recursively gets much more convoluted than with approach I. To write it down, we'd need to define a function that "forgets" the last component of a $n$-dimensional vector etc., and all that notations is just cluttering up things and making things more convoluted than needed.
III. Use already existing notation
As you are referrung to sums:
Functions with variable number of arguments are already in wide-spread use, and using them is usually not a deep dive in the rabbithole of nitpicking, it's just a notation that's been taken for granted. For example, the sum notation $\sum$ is a very generic device. It's supposed to be meaningful over any domain that knows of summation, different notations of specifying the indices are understood, etc. like
$$\sum_{n\in\Bbb N}\frac1{n^2}=\sum_{n=1}^\infty\frac1{n^2}$$
and it can even cope with zero arguments: The empty sum is defined to be $0$.
On Notation
The previous sections make it very clear that variable-argument functions is more a matter of notation, that help to improve reader's experience by not going into 200% nitpick mode. To that end, the notation for arguments that are vectors is already bit sloppy but still consistent. Take for example again $$\gcd:\Bbb Z^2\to\Bbb Z$$
This can be seen as
In the first case, the notation is $\gcd(a,b)$ with $a,b\in\Bbb Z$. In the second case, it is $\gcd(v)=\gcd((a,b))$ with $v=(a,b)\in\Bbb Z^2$.