manage_recovery_strategy
Add, update, end, or delete a recovery/mindfulness strategy. use: the user describes a new practice, changes a schedule, stops a practice, or removes one. Infer category from the name and schedule from context; start_date defaults to today. ASK only if name is missing.
SELECTOR for update/end/delete: exactly one; id if known, else strategy_name (case-insensitive substring, e.g. "sauna"). strategy_name matching more than one strategy -> error with candidate IDs to retry with.
AFTER a successful 'add': do NOT just confirm and stop. Reply by (1) restating the assumed schedule (sessions per period, duration, time of day, start date) in plain language, and (2) asking the user to confirm or correct it, especially optional fields you did NOT set (duration_minutes, time_of_day). Example: "Logged sauna starting today, assuming once per week. Sound right? About how long do you usually go for, and what time of day, morning or evening?" A correction -> call this tool again with action='update'. The goal is accurate adherence data, not a silent confirmation.
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": {
"action": "<action>"
},
"name": "manage_recovery_strategy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Strategy ID. See SELECTOR. | |
| name | No | Strategy name, e.g. 'Box Breathing'; needed for add. On update, sets a new name. | |
| notes | No | Free-text notes. | |
| action | Yes | Operation to perform. | |
| category | No | Infer from the name. | |
| end_date | No | YYYY-MM-DD; default today for end. | |
| start_date | No | YYYY-MM-DD; default today on add. | |
| period_unit | No | Default 'week'. | |
| time_of_day | No | When during the day: ['morning'], ['evening'], etc. | |
| strategy_name | No | Strategy name substring, case-insensitive (e.g. "sauna"). See SELECTOR. | |
| duration_minutes | No | Target minutes per session. | |
| sessions_per_period | No | Target sessions per period; default 1. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Human-readable result text returned by the tool. |