Preheat oven to 375 degrees F (190 degrees C). Grease baking sheets.
Melt margarine in a large saucepan over medium heat; remove from heat and stir in white sugar and brown sugar. Cool to room temperature, about 5 minutes.
Beat eggs into butter mixture until smooth. Stir rice flour, xanthan gum, baking powder, cinnamon, baking soda, ginger, nutmeg, allspice, and salt into butter mixture. Add oats; stir until dough is thick and well-combined. Stir in chocolate chips. Drop dough by the tablespoonful onto prepared baking sheet.
Bake in the preheated oven until golden and soft, 7 to 9 minutes.