Log a moment
log_momentLog one entry (a moment) against one of the user's trackers, when the user says that they did or measured something that they track ("I drank a glass of water", "my mood is 4"). A moment is not an event: use write_events for the schedule. Get trackerId from get_moments; this tool does not find a tracker by name or make one. time defaults to now and value to the tracker default; a rating is a whole number from ratingMin to ratingMax. Each call adds one new entry, so do not repeat a call that succeeded. Returns created. It has no undo receipt, and no tool edits or removes an entry: the user removes a wrong entry in the app.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"trackerId": "<trackerId>"
},
"name": "log_moment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | An optional note, at most 1000 characters. | |
| time | No | When it happened, a local datetime "YYYY-MM-DDTHH:MM" in the user's timezone. Defaults to now. | |
| value | No | The value. Defaults to the tracker default: one step for a tally or a quantity, the middle of the scale for a rating. A rating value must be a whole number from `ratingMin` to `ratingMax` of the tracker. | |
| trackerId | Yes | The tracker to log against: an `id` from get_moments. |