Log what actually happened on an experiment day
log_experiment_dayRecords whether a user followed their assigned experiment-day action, with an optional note, so adherence can be analyzed honestly.
Instructions
Records what ACTUALLY happened on an experiment day: followed true or false (did the user do what that day's arm said), with an optional note. Only intervention and control days can be logged (not washout or unassigned days), not future days and not after the experiment was stopped. date defaults to today; id defaults to the one experiment running today (needed when none or several run). Logging a day again with a different answer keeps the earlier answer under earlier (nothing is lost); the same answer again changes nothing. analyze_experiment reports intention to treat (every assigned day) and per protocol (only days logged as followed), so honest logging, including false, matters. Local file only (experiments.json): never contacts Suunto, needs no credentials. Output: { id, date, arm, saved: { followed, note, loggedAt, earlier }, changed }. Not read-only, not destructive, idempotent.
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": {
"followed": "<followed>"
},
"name": "log_experiment_day"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The experiment id (default: the one running today). | |
| date | No | The day, YYYY-MM-DD (default today; not in the future). | |
| note | No | Optional, e.g. 'coffee at 15:00'. | |
| followed | Yes | true: the user did what that day's arm said. false: they did not. |