Log a habit
log_habitRecord (or update) whether the caller completed a habit on a given day. Provide the 'habit_id', an optional 'date' (YYYY-MM-DD, defaults to today) and 'done' (defaults true). Idempotent per habit+date. Only the caller's own habit is reachable. CONFIRMATION: this tool runs immediately when the caller asks for it — it writes only their own record, and they can undo it from this same surface, so the request is taken as the instruction. You get an ordinary result, not a plan_token. Everything destructive, outbound or financial still proposes and waits.
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_id": "<habit_id>"
},
"name": "log_habit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| done | No | ||
| habit_id | Yes |