preheat oven to 400 degrees f. halve tomatoes and place cut side up with the onion on a rimmed baking sheet. drizzle with oil and add garlic, salt and pepper. stir to coat well.