add_treatment
Add insulin boluses, carbs, notes, exercise, and site changes to Nightscout. Returns the created entry for immediate confirmation.
Instructions
Add a treatment entry to Nightscout: insulin bolus, carbs, note, exercise, site change, etc. Requires NIGHTSCOUT_READONLY=false. Returns the created entry for confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| carbs | No | Carbs in grams | |
| notes | No | Free text note | |
| insulin | No | Insulin amount in units | |
| duration | No | Duration in minutes (for exercise, temp basal) | |
| eventType | Yes | Treatment type: 'Note', 'Meal Bolus', 'Correction Bolus', 'Carb Correction', 'Exercise', 'Temp Basal', 'Site Change', 'Sensor Start' | |
| created_at | No | Timestamp (ISO 8601). Defaults to now. |