A medical tool (4i) and/or a magazine (1) and a device (7, 9) for recognizing and modifying codings on the magazine form a system with which the state of tools that can be accommodated inside the magazine can be monitored. To this end, codings are placed on the medical tool (4i) and/or on the magazine (1) that contain information concerning individual tools. These codings can be modified by the device (7, 9) while taking the state of the tools into consideration.