record_habit
Add a habit the user reports (stored immediately as approved): habit_type — smoking / alcohol / cannabis / vaping / other substance, lower-case; status: current (default) / former / never; frequency: as the user said it ("about once a…
Instructions
Add a habit the user reports (stored immediately as approved): habit_type — smoking / alcohol / cannabis / vaping / other substance, lower-case; status: current (default) / former / never; frequency: as the user said it ("about once a week", "daily"); start_date / end_date: YYYY-MM-DD, only when the user gave the day — otherwise leave empty and put "since July 2026" into notes, never invent a day; notes: details (mixed with tobacco, CBD/THC, …); cigarettes_per_day / smoking_years / drinks_per_week when known. A change of pattern (e.g. stopped mixing with tobacco) = mark the old entry former via update_habit and record the new one. Check get_habits first to avoid duplicates.
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": {
"habit_type": "<habit_type>"
},
"name": "record_habit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| status | No | current | |
| end_date | No | ||
| frequency | No | ||
| habit_type | Yes | ||
| start_date | No | ||
| smoking_years | No | ||
| drinks_per_week | No | ||
| cigarettes_per_day | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |