record_habit
Record or undo habit check-ins, syncing changes to the Marvin app immediately. Use to log completed habits or revert mistakes.
Instructions
Record or undo a habit check-in, synced to the app. Also updates the sync database (updateDB=true) so the Marvin app shows the change immediately.
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": "record_habit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| undo | No | True to undo the latest recording instead | |
| value | No | Value to record (1 for boolean habits) | |
| habit_id | Yes | Habit ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||