We present a new construction of finite Gelfand pairs by looking at the action of the full automorphism group of a finite spherically homogeneous rooted tree of type r on the variety V(r, s) of all spherically homogeneous subtrees of type s. This generalizes well-known examples as the finite ultrametric space, the Hamming scheme and the Johnson scheme. We also present further generalizations of these classical examples. The first two are based on Harary's notions of composition and exponentiation of group actions. Finally, the generalized Johnson scheme provides the inductive step for the harmonic analysis of our main construction. (C) 2005 Elsevier Inc. All fights reserved