A discriminative stimulus is a specific environmental cue or signal that indicates the availability of reinforcement or punishment, thereby influencing the likelihood of a particular behavior occurring. It plays a crucial role in operant conditioning by helping organisms distinguish between different contexts and adjust their behaviors accordingly.