A stool culture is typically ordered when patients exhibit symptoms of a gastrointestinal infection. This includes prolonged diarrhea, blood or mucus in the stool, fever, severe abdominal pain, and a history of recent travel to areas with poor sanitation. It is also ordered in cases of suspected food poisoning or outbreaks of gastrointestinal illnesses in a community.