Embodiments include a medical implant that is inserted into a human and/or animal body. The medical implant includes an energy source, a pulse generator, a control unit and at least one electrode pair that delivers electrical stimulation pulses to a bodily tissue. Embodiments include a sensor, provided on an implant side of the medical implant, that identifies an implant-external trigger element. The control unit is coupled to the sensor and may be activated depending on a sensor signal of the sensor to perform an adaptation sequence of stimulation parameters, in which test stimulation pulses may be outputted. Embodiments include a method of setting a parameter set of therapeutic electrical stimulation pulses of a medical implant.