Set a reminder
trainrec_set_reminderReminders are TrainRec's notifications on the person's phone. They start at zero: none exist until the person asks their assistant (you) to set one up, so when they ask to be reminded of something, this is how. Adds a reminder, or changes one (give its id and version). Kinds: weigh_in, log_food (optionally one meal), workout (names today's planned workout if there is one) and streak (training weeks in a row, sent only if this week has no workout yet) go at a local time, and each is skipped that day once it is done. goal goes when a daily number is approaching or has reached its target (calories, a macro, or a nutrient with a target), not between 22:00 and 07:00. custom says the person's own words at a time. recap sends the day's calories and protein against their targets and its workout, at a time, every day it is on. Every reminder needs its trigger from the person: a time (their local time, 24-hour HH:MM) for timed kinds, or the amount left for an approaching goal alert. If they didn't say one, or said only "before 9 am", ask them what time; never choose it yourself. At most 20 reminders and 6 notifications a day. It shows in the app under the assistant's name, with Undo. threshold goes once, the first time today's total of a food number goes over an amount the person sets, whatever their target. check goes at a time only if today's total is still under (or over) the amount they set. Both need the whole trigger from the person: the food number, over or under, the amount, and for check a time outside 22:00 to 07:00. If they say "my target", say the number back and use that number. Set one up only when the person asks for it. A workout reminder can be for one day (date) instead of days of the week, for a planned workout: "remind me at 5 before Tuesday's workout". Its time is still the one the person says. A custom reminder can carry amount as its condition ("8 pm, shake if protein is under 150 g"): their words go out only when it applies, with where they stand. If the person leaves the time or amount to you ("you pick", "I defer to you"), choose one from their log and set proposed: true: it stays off and sends nothing until they tap Approve in the app, and say so. Goal alerts that can only come too late (reached on a limit, approaching on protein or fiber) are refused for new ones: a check alert at a time they can still act is better.
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": {
"kind": "<kind>"
},
"name": "trainrec_set_reminder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Local time, HH:MM 24-hour, as the person says it. Required for every kind but goal; ask them if they didn't say. | |
| id | No | To change an existing reminder. Leave out to add one. | |
| on | No | Default true. false keeps it but sends nothing. | |
| date | No | workout only: the one day it is for, YYYY-MM-DD, instead of days. | |
| days | No | 1 = Monday to 7 = Sunday. Leave out for every day. | |
| goal | No | goal only. | |
| kind | Yes | ||
| meal | No | log_food only. | |
| text | No | custom only. What it says, up to 80 characters: "Take creatine". | |
| amount | No | threshold and check only. | |
| streak | No | streak only. training_weeks: weeks in a row with a workout; training_days: days in a row with a workout or food logged. | |
| version | No | Required with id. | |
| proposed | No | true when the person left the time or amount to you: kept off until they approve it in the app. |