Server definition
- Hash
- sha256:19f18de30c948aebe92e6187d48af6016551c768aee1afb16b56f95943a768d3
- What it is
- What a remote MCP server returned when asked what it offers: 34 tools
The blob, as servednamed by its sha256
{
"instructions": "TrainRec is this person's workout and food log. Their app shows every change you make, under your name, with Undo. Call trainrec_overview at the start for today's date and their weight unit, and bring up any notes they left. Keep rememberedAboutThem in mind in everything you suggest. Read a record before changing it (get_workout, get_routine, food_day, measurements) and send back the version you read. Telling them what to do: plan_workout. Recording a workout already done: save_workout. Before add_exercise, check list_exercises. Log only what the person says they did or ate. Never invent sets, weights, foods or measurements, and never fill in what an import source leaves out. Food: give every nutrient the label or a reliable source lists, always including sodiumMg, fiberG, sugarG, saturatedFatG, potassiumMg and the ones they track (overview.tracking); an estimate estimates these too, and one that cannot be in a food is 0, not left out (fiber in chicken). Say when numbers are your estimate. Use edit_food to add nutrients to foods logged without them. Targets and settings only when they ask or agree to numbers you proposed; a target their doctor gave them is theirs to state. exerciseCalories is their choice, never yours to tune from weigh-ins. Calorie targets and remaining (overview, food_day) already include their bonus calories at the share they chose; bonusCalories shows the sum. Never add exercise or bonus calories yourself. exercise_history pace is a projection at the current rate: never explain it with a cause, and never adjust it with RPE. Do not forecast weight, blood pressure or other health numbers. overview.fromOura, when present, is Oura's own readings as Oura gave them. Mention one only when it bears on what they asked; change the plan only when they ask or say yes, before the workout, with Undo. Work out no number from them (no average, baseline, difference or score of your own), use no rule like \"if readiness is under 70\", never suggest something to raise a reading, never warn about illness, overtraining or injury from them, never forecast them, and keep your tone the same whatever they say. Never put them, or what they suggest, in a note, workout or routine. A set's weight is the total moved, bar or sled included, except a dumbbell exercise's: the weight of one dumbbell. The app and watch show how each is counted (45 bar · 45 each side, ×2 = 100). If they logged only the plates on a plate-loaded machine, offer to add the sled weight to those sets with save_workout after setting baseWeight. Strong exports do not say their unit; ask if unsure. Other apps and formats go through import_workouts, import_food or import_measurements, with one batch id per import. Meals ahead: they can plan meals for days to come, and you can plan them with log_food planned: true. Offer it once when it fits (after planning their workouts or week, or when they talk about what they will eat), and plan meals only when they ask or say yes. A planned meal is foods and servings only, no recipe, and counts in no total until eaten. When they say they had it, edit_food planned: false with what they actually had; delete_food one they skipped. Change another planned meal only when they ask. After planning meals, confirm in a line and point them to that day on Food; don't list the meals back. If they want something lighter than a planned meal, ask what they would like instead or change its servings; never pick another food for having less. Reminders and alerts are something you can set up, and people only know to ask if they hear it. When they ask what you can do, include them, with a generic example (\"remind me to weigh in at 8\"). When they say in this conversation that they forget, miss or overshoot something the log tracks, you may say once in the conversation that you can set a reminder or alert for that if they'd like, never naming a time, amount or food yourself, and set one up only if they say yes. Never offer one because of their log, notes, past chats or missed entries, and don't bring it up again.",
"tools": [
{
"description": "Makes a custom exercise with a name, kind and muscles. equipment: \"plate\" for a plate-loaded machine or \"smith\" for a Smith machine gives it a sled or bar its base weight is counted from (change_settings baseWeight).",
"inputSchema": {
"properties": {
"equipment": {
"enum": [
"barbell",
"dumbbell",
"machine",
"cable",
"smith",
"plate",
"kettlebell",
"band",
"bodyweight"
],
"type": "string"
},
"kind": {
"enum": [
"weight_reps",
"bodyweight_reps",
"weighted_bodyweight",
"assisted_bodyweight",
"duration",
"distance_duration"
],
"type": "string"
},
"muscles": {
"items": {
"type": "string"
},
"type": "array"
},
"name": {
"type": "string"
}
},
"required": [
"name",
"kind"
],
"type": "object"
},
"name": "trainrec_add_exercise",
"outputSchema": null
},
{
"description": "Changes settings. unit: lb or kg. foodShows: the full list of extra nutrients shown, in order, replacing the old one ([] shows only the macros). exerciseCalories: none, half or all of each day's bonus calories (active calories beyond a usual day, or workout calories when there is no daily count) added to the calorie target. weightGoal: a body weight in goalUnit (or theirs), or 0 to clear it; progress counts from their current trend. baseWeight: what a plate-loaded or Smith machine's sled or bar weighs empty, for one exercise (0 when not counted), or a barbell exercise's bar when it is not the standard 45 lb / 20 kg (an EZ or trap bar); it does not change sets already logged. birthYear: the year they were born, used only to estimate their maximum heart rate for heart rate zones. The change shows in the app with Undo.",
"inputSchema": {
"properties": {
"baseWeight": {
"properties": {
"exerciseId": {
"type": "string"
},
"weight": {
"description": "In the person's unit.",
"type": "number"
}
},
"required": [
"exerciseId",
"weight"
],
"type": "object"
},
"birthYear": {
"description": "The year they were born.",
"type": "integer"
},
"exerciseCalories": {
"enum": [
"none",
"half",
"all"
],
"type": "string"
},
"foodShows": {
"items": {
"enum": [
"waterMl",
"fiberG",
"sugarG",
"addedSugarG",
"saturatedFatG",
"transFatG",
"cholesterolMg",
"sodiumMg",
"potassiumMg",
"calciumMg",
"magnesiumMg",
"ironMg",
"zincMg",
"vitaminAMcg",
"vitaminCMg",
"vitaminDMcg",
"vitaminB12Mcg",
"folateMcg",
"caffeineMg",
"alcoholG"
],
"type": "string"
},
"type": "array"
},
"goalUnit": {
"description": "Unit of weightGoal. Defaults to the person's.",
"enum": [
"lb",
"kg"
],
"type": "string"
},
"unit": {
"enum": [
"lb",
"kg"
],
"type": "string"
},
"weightGoal": {
"description": "Weight to reach, in goalUnit. 0 clears the goal.",
"type": "number"
}
},
"type": "object"
},
"name": "trainrec_change_settings",
"outputSchema": null
},
{
"description": "Removes one food entry, given its id and version. The person can undo it in the app.",
"inputSchema": {
"properties": {
"id": {
"type": "string"
},
"version": {
"type": "integer"
}
},
"required": [
"id",
"version"
],
"type": "object"
},
"name": "trainrec_delete_food",
"outputSchema": null
},
{
"description": "Removes one reading, given its id and version. The person can undo it in the app.",
"inputSchema": {
"properties": {
"id": {
"type": "string"
},
"version": {
"type": "integer"
}
},
"required": [
"id",
"version"
],
"type": "object"
},
"name": "trainrec_delete_measurement",
"outputSchema": null
},
{
"description": "Removes one reminder, given its id and version. To stop it for a while instead, set_reminder with on false. The person can undo it in the app.",
"inputSchema": {
"properties": {
"id": {
"type": "string"
},
"version": {
"type": "integer"
}
},
"required": [
"id",
"version"
],
"type": "object"
},
"name": "trainrec_delete_reminder",
"outputSchema": null
},
{
"description": "Removes one routine, given its id and version. Workouts already done from it stay. The person can undo it in the app.",
"inputSchema": {
"properties": {
"id": {
"type": "string"
},
"version": {
"type": "integer"
}
},
"required": [
"id",
"version"
],
"type": "object"
},
"name": "trainrec_delete_routine",
"outputSchema": null
},
{
"description": "Removes one workout, given its id and version. The person can undo it in the app.",
"inputSchema": {
"properties": {
"id": {
"type": "string"
},
"summary": {
"type": "string"
},
"version": {
"type": "integer"
}
},
"required": [
"id",
"version"
],
"type": "object"
},
"name": "trainrec_delete_workout",
"outputSchema": null
},
{
"description": "Changes fields of one food entry, given its id and version. Fields left out stay as they are; perServing is replaced whole. planned: false marks a planned food eaten, with servings or perServing in the same call as what was actually had.",
"inputSchema": {
"properties": {
"day": {
"type": "string"
},
"id": {
"type": "string"
},
"meal": {
"enum": [
"breakfast",
"lunch",
"dinner",
"snack"
],
"type": "string"
},
"name": {
"type": "string"
},
"perServing": {
"description": "For ONE serving, as the label or a reliable source states it.",
"properties": {
"addedSugarG": {
"description": "Added sugar, g.",
"type": "number"
},
"alcoholG": {
"description": "Alcohol, g.",
"type": "number"
},
"caffeineMg": {
"description": "Caffeine, mg.",
"type": "number"
},
"calciumMg": {
"description": "Calcium, mg.",
"type": "number"
},
"carbsG": {
"type": "number"
},
"cholesterolMg": {
"description": "Cholesterol, mg.",
"type": "number"
},
"fatG": {
"type": "number"
},
"fiberG": {
"description": "Fiber, g.",
"type": "number"
},
"folateMcg": {
"description": "Folate, mcg.",
"type": "number"
},
"ironMg": {
"description": "Iron, mg.",
"type": "number"
},
"kcal": {
"type": "number"
},
"magnesiumMg": {
"description": "Magnesium, mg.",
"type": "number"
},
"potassiumMg": {
"description": "Potassium, mg.",
"type": "number"
},
"proteinG": {
"type": "number"
},
"saturatedFatG": {
"description": "Saturated fat, g.",
"type": "number"
},
"sodiumMg": {
"description": "Sodium, mg.",
"type": "number"
},
"sugarG": {
"description": "Sugar, g.",
"type": "number"
},
"transFatG": {
"description": "Trans fat, g.",
"type": "number"
},
"vitaminAMcg": {
"description": "Vitamin A, mcg.",
"type": "number"
},
"vitaminB12Mcg": {
"description": "Vitamin B12, mcg.",
"type": "number"
},
"vitaminCMg": {
"description": "Vitamin C, mg.",
"type": "number"
},
"vitaminDMcg": {
"description": "Vitamin D, mcg.",
"type": "number"
},
"waterMl": {
"description": "Water, ml.",
"type": "number"
},
"zincMg": {
"description": "Zinc, mg.",
"type": "number"
}
},
"required": [
"kcal",
"proteinG",
"carbsG",
"fatG"
],
"type": "object"
},
"planned": {
"description": "false: eaten. true: planned, not eaten yet.",
"type": "boolean"
},
"servingLabel": {
"type": "string"
},
"servings": {
"type": "number"
},
"summary": {
"type": "string"
},
"version": {
"type": "integer"
}
},
"required": [
"id",
"version"
],
"type": "object"
},
"name": "trainrec_edit_food",
"outputSchema": null
},
{
"description": "One exercise over time: personal records (heaviest, best estimated one-rep max, most reps, best session volume) and every session that included it, oldest first. Warm-ups and sets not done are excluded. pace is a straight line through the last 12 weeks of session estimated one-rep maxes (from weights and reps only), with where that line is in 4, 8 and 12 weeks; with target, also the day the line reaches it. pace is a projection at the current rate.",
"inputSchema": {
"properties": {
"exerciseId": {
"type": "string"
},
"limit": {
"description": "Most recent sessions to return. Default 10.",
"type": "integer"
},
"target": {
"description": "A one-rep max to reach, in unit.",
"type": "number"
},
"unit": {
"description": "Unit for every weight in this call. Defaults to the person's own unit.",
"enum": [
"lb",
"kg"
],
"type": "string"
}
},
"required": [
"exerciseId"
],
"type": "object"
},
"name": "trainrec_exercise_history",
"outputSchema": null
},
{
"description": "Bugs and ideas already sent to the TrainRec team that look like what the person describes, best match first, with whether each is fixed. Call this before report_issue: if one matches, add to it rather than sending a new one. Read-only.",
"inputSchema": {
"properties": {
"query": {
"description": "What went wrong or what they want, in a few words.",
"type": "string"
}
},
"required": [
"query"
],
"type": "object"
},
"name": "trainrec_find_issues",
"outputSchema": null
},
{
"description": "Everything eaten on one day, each entry with its id and version, totals by meal and for the day, and what is left of the targets.",
"inputSchema": {
"properties": {
"day": {
"description": "YYYY-MM-DD. Default today.",
"type": "string"
}
},
"type": "object"
},
"name": "trainrec_food_day",
"outputSchema": null
},
{
"description": "One routine with every set, in the person's unit, and its version.",
"inputSchema": {
"properties": {
"id": {
"type": "string"
},
"unit": {
"description": "Unit for every weight in this call. Defaults to the person's own unit.",
"enum": [
"lb",
"kg"
],
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
},
"name": "trainrec_get_routine",
"outputSchema": null
},
{
"description": "One workout with every set, in the person's unit, and its version.",
"inputSchema": {
"properties": {
"id": {
"type": "string"
},
"unit": {
"description": "Unit for every weight in this call. Defaults to the person's own unit.",
"enum": [
"lb",
"kg"
],
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
},
"name": "trainrec_get_workout",
"outputSchema": null
},
{
"description": "Imports a CSV exported from Strong (workouts or measurements) or Hevy, as text exactly as the file has it; the server parses it. A large file can be sent in pieces split on whole workouts, each with the header line and the same batch id. Strong exports omit their unit. Workouts already imported are skipped. Only Strong and Hevy formats.",
"inputSchema": {
"properties": {
"batch": {
"description": "Returned by the first call; pass it on later pieces of the same file.",
"type": "string"
},
"format": {
"description": "Detected from the header when omitted.",
"enum": [
"strong",
"hevy",
"strong-measurements"
],
"type": "string"
},
"text": {
"description": "The CSV text, header line first.",
"type": "string"
},
"unit": {
"description": "Unit for every weight in this call. Defaults to the person's own unit.",
"enum": [
"lb",
"kg"
],
"type": "string"
}
},
"required": [
"text"
],
"type": "object"
},
"name": "trainrec_import_file",
"outputSchema": null
},
{
"description": "Imports past meals from another nutrition app or file: each entry's day, meal, name, numbers PER SERVING and servings. Up to 200 entries per call; the same batch id on later calls makes one import, undone together. Entries already imported from the same app are skipped.",
"inputSchema": {
"properties": {
"app": {
"description": "Where these came from, e.g. \"MyFitnessPal\".",
"type": "string"
},
"batch": {
"description": "Returned by the first call; pass it on later calls in the same import.",
"type": "string"
},
"entries": {
"items": {
"properties": {
"day": {
"description": "YYYY-MM-DD.",
"type": "string"
},
"externalId": {
"description": "The source's own id for the entry, if it has one.",
"type": "string"
},
"meal": {
"enum": [
"breakfast",
"lunch",
"dinner",
"snack"
],
"type": "string"
},
"name": {
"type": "string"
},
"perServing": {
"description": "For ONE serving, as the label or a reliable source states it.",
"properties": {
"addedSugarG": {
"description": "Added sugar, g.",
"type": "number"
},
"alcoholG": {
"description": "Alcohol, g.",
"type": "number"
},
"caffeineMg": {
"description": "Caffeine, mg.",
"type": "number"
},
"calciumMg": {
"description": "Calcium, mg.",
"type": "number"
},
"carbsG": {
"type": "number"
},
"cholesterolMg": {
"description": "Cholesterol, mg.",
"type": "number"
},
"fatG": {
"type": "number"
},
"fiberG": {
"description": "Fiber, g.",
"type": "number"
},
"folateMcg": {
"description": "Folate, mcg.",
"type": "number"
},
"ironMg": {
"description": "Iron, mg.",
"type": "number"
},
"kcal": {
"type": "number"
},
"magnesiumMg": {
"description": "Magnesium, mg.",
"type": "number"
},
"potassiumMg": {
"description": "Potassium, mg.",
"type": "number"
},
"proteinG": {
"type": "number"
},
"saturatedFatG": {
"description": "Saturated fat, g.",
"type": "number"
},
"sodiumMg": {
"description": "Sodium, mg.",
"type": "number"
},
"sugarG": {
"description": "Sugar, g.",
"type": "number"
},
"transFatG": {
"description": "Trans fat, g.",
"type": "number"
},
"vitaminAMcg": {
"description": "Vitamin A, mcg.",
"type": "number"
},
"vitaminB12Mcg": {
"description": "Vitamin B12, mcg.",
"type": "number"
},
"vitaminCMg": {
"description": "Vitamin C, mg.",
"type": "number"
},
"vitaminDMcg": {
"description": "Vitamin D, mcg.",
"type": "number"
},
"waterMl": {
"description": "Water, ml.",
"type": "number"
},
"zincMg": {
"description": "Zinc, mg.",
"type": "number"
}
},
"required": [
"kcal",
"proteinG",
"carbsG",
"fatG"
],
"type": "object"
},
"servingLabel": {
"type": "string"
},
"servings": {
"description": "Default 1.",
"type": "number"
}
},
"required": [
"day",
"meal",
"name",
"perServing"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"app",
"entries"
],
"type": "object"
},
"name": "trainrec_import_food",
"outputSchema": null
},
{
"description": "Imports past measurements (weight, body fat, tape, blood pressure, resting heart rate, HRV, sleep, daily calories), each with its time as the source wrote it, kind, value and unit, and origin when the source names one. Up to 1000 per call; the same batch id on later calls makes one import. Readings already recorded are skipped.",
"inputSchema": {
"properties": {
"app": {
"type": "string"
},
"batch": {
"type": "string"
},
"items": {
"items": {
"properties": {
"at": {
"type": "string"
},
"externalId": {
"type": "string"
},
"kind": {
"enum": [
"weight",
"body_fat",
"neck",
"shoulders",
"chest",
"waist",
"hips",
"left_bicep",
"right_bicep",
"left_forearm",
"right_forearm",
"left_thigh",
"right_thigh",
"left_calf",
"right_calf",
"calories_in",
"resting_hr",
"hrv",
"blood_pressure",
"sleep",
"vo2max",
"active_kcal",
"resting_kcal",
"steps",
"exercise_min",
"stand_hours",
"flights",
"move_goal_kcal",
"respiratory_rate",
"spo2",
"wrist_temp",
"walking_hr",
"walking_speed",
"step_length",
"sleep_deep",
"sleep_rem",
"sleep_core",
"sleep_awake",
"height",
"ftp",
"walking_steadiness"
],
"type": "string"
},
"origin": {
"type": "string"
},
"unit": {
"type": "string"
},
"value": {
"type": "number"
},
"value2": {
"type": "number"
}
},
"required": [
"at",
"kind",
"value"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"app",
"items"
],
"type": "object"
},
"name": "trainrec_import_measurements",
"outputSchema": null
},
{
"description": "Imports past workouts from another app or file. Exercises are matched to existing ones by name; unmatched names become custom exercises, listed in the result. Up to 100 workouts per call; the same batch id on later calls makes one import, undone together. Workouts already imported from the same app are skipped.",
"inputSchema": {
"properties": {
"app": {
"description": "Where these came from, e.g. \"FitNotes\", \"JEFIT\", \"Notes app\".",
"type": "string"
},
"batch": {
"description": "Returned by the first call; pass it on later calls in the same import.",
"type": "string"
},
"unit": {
"description": "Unit for every weight in this call. Defaults to the person's own unit.",
"enum": [
"lb",
"kg"
],
"type": "string"
},
"workouts": {
"items": {
"properties": {
"day": {
"description": "YYYY-MM-DD.",
"type": "string"
},
"exercises": {
"items": {
"properties": {
"kind": {
"enum": [
"weight_reps",
"bodyweight_reps",
"weighted_bodyweight",
"assisted_bodyweight",
"duration",
"distance_duration"
],
"type": "string"
},
"name": {
"type": "string"
},
"notes": {
"type": "string"
},
"sets": {
"items": {
"properties": {
"done": {
"description": "True for a set performed. False for a planned set. Default true.",
"type": "boolean"
},
"elevationM": {
"description": "Metres climbed in this set (a lap, split or whole run). Feet × 0.3048.",
"type": "integer"
},
"meters": {
"description": "For cardio exercises.",
"type": "number"
},
"reps": {
"type": "integer"
},
"restSeconds": {
"description": "Planned rest after this set, in seconds.",
"type": "integer"
},
"rpe": {
"description": "Rate of perceived exertion as the person reported it, 1 to 10 in half steps.",
"type": "number"
},
"seconds": {
"description": "For timed and cardio exercises.",
"type": "integer"
},
"type": {
"description": "Default normal.",
"enum": [
"warmup",
"normal",
"drop",
"failure"
],
"type": "string"
},
"weight": {
"description": "Total load moved (on a plate-loaded or Smith machine, the sled or bar plus the plates), added load for weighted bodyweight, or assistance for assisted. In `unit`.",
"type": "number"
}
},
"type": "object"
},
"type": "array"
}
},
"required": [
"name",
"sets"
],
"type": "object"
},
"type": "array"
},
"externalId": {
"description": "The source's own id, if it has one.",
"type": "string"
},
"finishedAt": {
"type": "string"
},
"name": {
"type": "string"
},
"notes": {
"type": "string"
},
"startedAt": {
"description": "YYYY-MM-DDTHH:MM:SS, if known.",
"type": "string"
}
},
"required": [
"name",
"day",
"exercises"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"app",
"workouts"
],
"type": "object"
},
"name": "trainrec_import_workouts",
"outputSchema": null
},
{
"description": "Exercise ids, names and kinds, built-in and custom, optionally filtered by words in the name. The kind decides which set fields apply.",
"inputSchema": {
"properties": {
"query": {
"type": "string"
}
},
"type": "object"
},
"name": "trainrec_list_exercises",
"outputSchema": null
},
{
"description": "Workouts between two dates, newest first, with each exercise and how many of its sets were done. Sets themselves are not included.",
"inputSchema": {
"properties": {
"from": {
"description": "YYYY-MM-DD, inclusive.",
"type": "string"
},
"limit": {
"description": "Default 20, at most 100.",
"type": "integer"
},
"to": {
"description": "YYYY-MM-DD, inclusive.",
"type": "string"
}
},
"type": "object"
},
"name": "trainrec_list_workouts",
"outputSchema": null
},
{
"description": "Adds one or more food entries, each with its numbers PER SERVING and the number of servings. perServing takes the macros and any label nutrient (sodiumMg, potassiumMg and the rest); a nutrient left out counts as unknown, not zero. A glass of plain water is an entry named \"Water\" with kcal and macros 0 and waterMl. Each entry is its own change, with Undo. When the person asks to note a food without numbers (\"just note it\"), leave perServing out: it shows as numbers not added yet, until edit_food gives it perServing. planned: true puts a meal on a day ahead (or later today) without counting it in any total until it is eaten (edit_food planned: false).",
"inputSchema": {
"properties": {
"entries": {
"items": {
"properties": {
"day": {
"description": "YYYY-MM-DD. Default today.",
"type": "string"
},
"meal": {
"enum": [
"breakfast",
"lunch",
"dinner",
"snack"
],
"type": "string"
},
"name": {
"type": "string"
},
"perServing": {
"description": "For ONE serving, as the label or a reliable source states it.",
"properties": {
"addedSugarG": {
"description": "Added sugar, g.",
"type": "number"
},
"alcoholG": {
"description": "Alcohol, g.",
"type": "number"
},
"caffeineMg": {
"description": "Caffeine, mg.",
"type": "number"
},
"calciumMg": {
"description": "Calcium, mg.",
"type": "number"
},
"carbsG": {
"type": "number"
},
"cholesterolMg": {
"description": "Cholesterol, mg.",
"type": "number"
},
"fatG": {
"type": "number"
},
"fiberG": {
"description": "Fiber, g.",
"type": "number"
},
"folateMcg": {
"description": "Folate, mcg.",
"type": "number"
},
"ironMg": {
"description": "Iron, mg.",
"type": "number"
},
"kcal": {
"type": "number"
},
"magnesiumMg": {
"description": "Magnesium, mg.",
"type": "number"
},
"potassiumMg": {
"description": "Potassium, mg.",
"type": "number"
},
"proteinG": {
"type": "number"
},
"saturatedFatG": {
"description": "Saturated fat, g.",
"type": "number"
},
"sodiumMg": {
"description": "Sodium, mg.",
"type": "number"
},
"sugarG": {
"description": "Sugar, g.",
"type": "number"
},
"transFatG": {
"description": "Trans fat, g.",
"type": "number"
},
"vitaminAMcg": {
"description": "Vitamin A, mcg.",
"type": "number"
},
"vitaminB12Mcg": {
"description": "Vitamin B12, mcg.",
"type": "number"
},
"vitaminCMg": {
"description": "Vitamin C, mg.",
"type": "number"
},
"vitaminDMcg": {
"description": "Vitamin D, mcg.",
"type": "number"
},
"waterMl": {
"description": "Water, ml.",
"type": "number"
},
"zincMg": {
"description": "Zinc, mg.",
"type": "number"
}
},
"required": [
"kcal",
"proteinG",
"carbsG",
"fatG"
],
"type": "object"
},
"planned": {
"description": "Planned, not eaten yet.",
"type": "boolean"
},
"servingLabel": {
"description": "What one serving is: \"1 cup\", \"100 g\", \"1 bar\".",
"type": "string"
},
"servings": {
"description": "Default 1.",
"type": "number"
}
},
"required": [
"meal",
"name"
],
"type": "object"
},
"type": "array"
},
"summary": {
"type": "string"
}
},
"required": [
"entries"
],
"type": "object"
},
"name": "trainrec_log_food",
"outputSchema": null
},
{
"description": "Records one measurement: weight, body fat, a tape measurement, blood pressure, resting heart rate, HRV or sleep, in the unit given (lb, kg, %, in, cm, bpm, ms, mmHg, min). Blood pressure takes systolic as value and diastolic as value2.",
"inputSchema": {
"properties": {
"at": {
"description": "When it was taken, ISO or YYYY-MM-DD HH:MM. Default now.",
"type": "string"
},
"kind": {
"enum": [
"weight",
"body_fat",
"neck",
"shoulders",
"chest",
"waist",
"hips",
"left_bicep",
"right_bicep",
"left_forearm",
"right_forearm",
"left_thigh",
"right_thigh",
"left_calf",
"right_calf",
"calories_in",
"resting_hr",
"hrv",
"blood_pressure",
"sleep",
"vo2max",
"active_kcal",
"resting_kcal",
"steps",
"exercise_min",
"stand_hours",
"flights",
"move_goal_kcal",
"respiratory_rate",
"spo2",
"wrist_temp",
"walking_hr",
"walking_speed",
"step_length",
"sleep_deep",
"sleep_rem",
"sleep_core",
"sleep_awake",
"height",
"ftp",
"walking_steadiness"
],
"type": "string"
},
"unit": {
"type": "string"
},
"value": {
"type": "number"
},
"value2": {
"type": "number"
}
},
"required": [
"kind",
"value"
],
"type": "object"
},
"name": "trainrec_log_measurement",
"outputSchema": null
},
{
"description": "Body measurements over time, one kind at a time, one value per day (the last reading of the day), in the person's units, newest last: weight, body fat, tape measurements, calories eaten per day, resting heart rate, HRV, blood pressure and sleep, and from Oura readiness, sleep score, temperature change and minutes stressed and restored. Without kind, the latest reading of every kind recorded. Each value has its id and version.",
"inputSchema": {
"properties": {
"from": {
"description": "YYYY-MM-DD.",
"type": "string"
},
"kind": {
"enum": [
"weight",
"body_fat",
"neck",
"shoulders",
"chest",
"waist",
"hips",
"left_bicep",
"right_bicep",
"left_forearm",
"right_forearm",
"left_thigh",
"right_thigh",
"left_calf",
"right_calf",
"calories_in",
"resting_hr",
"hrv",
"blood_pressure",
"sleep",
"vo2max",
"active_kcal",
"resting_kcal",
"steps",
"exercise_min",
"stand_hours",
"flights",
"move_goal_kcal",
"respiratory_rate",
"spo2",
"wrist_temp",
"walking_hr",
"walking_speed",
"step_length",
"sleep_deep",
"sleep_rem",
"sleep_core",
"sleep_awake",
"height",
"ftp",
"walking_steadiness",
"readiness",
"sleep_score",
"temp_deviation",
"stress_min",
"restored_min"
],
"type": "string"
},
"limit": {
"description": "Most recent days to return. Default 60, at most 400.",
"type": "integer"
},
"to": {
"description": "YYYY-MM-DD.",
"type": "string"
}
},
"type": "object"
},
"name": "trainrec_measurements",
"outputSchema": null
},
{
"description": "Today's date and weight unit for this person, today's food against their targets, their last few workouts, their routines, notes they left, and what they changed in the app since the assistant's last change (sets done differently from a plan show the planned values beside them). Each planned workout says whether it is reviewed: the app shows \"Reviewed by\" if the assistant wrote the plan after the person's latest workout. suggestedNext is the app's own pick from their rotation when nothing is planned today. Read-only.",
"inputSchema": {
"properties": {},
"type": "object"
},
"name": "trainrec_overview",
"outputSchema": null
},
{
"description": "Plans a workout for the person to do: saves it in TrainRec, where their phone and watch walk them through it one set at a time, with each set's target (weight and reps, time or distance) and the rest after it. Every set starts as not yet done. Given an id and version, it changes an existing plan, even during the workout: sets already done are kept, and the phone and watch show the change within seconds. A workout that already happened is recorded with save_workout.",
"inputSchema": {
"properties": {
"day": {
"description": "YYYY-MM-DD. Default today.",
"type": "string"
},
"exercises": {
"description": "In the order performed, by exercise id (built-in or custom).",
"items": {
"properties": {
"exerciseId": {
"type": "string"
},
"notes": {
"type": "string"
},
"sets": {
"items": {
"properties": {
"done": {
"description": "True for a set performed. False for a planned set. Default true.",
"type": "boolean"
},
"elevationM": {
"description": "Metres climbed in this set (a lap, split or whole run). Feet × 0.3048.",
"type": "integer"
},
"meters": {
"description": "For cardio exercises.",
"type": "number"
},
"reps": {
"type": "integer"
},
"restSeconds": {
"description": "Planned rest after this set, in seconds.",
"type": "integer"
},
"rpe": {
"description": "Rate of perceived exertion as the person reported it, 1 to 10 in half steps.",
"type": "number"
},
"seconds": {
"description": "For timed and cardio exercises.",
"type": "integer"
},
"type": {
"description": "Default normal.",
"enum": [
"warmup",
"normal",
"drop",
"failure"
],
"type": "string"
},
"weight": {
"description": "Total load moved (on a plate-loaded or Smith machine, the sled or bar plus the plates), added load for weighted bodyweight, or assistance for assisted. In `unit`.",
"type": "number"
}
},
"type": "object"
},
"type": "array"
},
"supersetId": {
"description": "Give exercises listed next to each other the same short label (e.g. \"a\") to make them a superset: the app alternates them set by set and rests only after each round.",
"type": "string"
}
},
"required": [
"exerciseId",
"sets"
],
"type": "object"
},
"type": "array"
},
"fresh": {
"description": "true puts a workout started by mistake back to a plan: no set done, no start time. Send the whole plan.",
"type": "boolean"
},
"id": {
"description": "Omit to create.",
"type": "string"
},
"name": {
"description": "e.g. \"Easy 5K and core\", \"Upper body A\".",
"type": "string"
},
"notes": {
"description": "Shown at the top while they follow it: the goal of the session, cues.",
"type": "string"
},
"summary": {
"type": "string"
},
"unit": {
"description": "Unit for every weight in this call. Defaults to the person's own unit.",
"enum": [
"lb",
"kg"
],
"type": "string"
},
"version": {
"description": "Required when id is given.",
"type": "integer"
}
},
"required": [
"name",
"exercises"
],
"type": "object"
},
"name": "trainrec_plan_workout",
"outputSchema": null
},
{
"description": "The latest changes to this log, newest first, with who made each one and its seq number.",
"inputSchema": {
"properties": {
"limit": {
"description": "Default 20.",
"type": "integer"
}
},
"type": "object"
},
"name": "trainrec_recent_changes",
"outputSchema": null
},
{
"description": "The person's reminders (notifications on their phone): what each says, when, whether it is on, and who set it up. Read-only.",
"inputSchema": {
"properties": {},
"type": "object"
},
"name": "trainrec_reminders",
"outputSchema": null
},
{
"description": "Send a bug or an idea to the TrainRec team, only after the person agrees to. Call find_issues first: if an issue matches, pass its issueId with what this person adds; otherwise pass kind, title and details for a new one. Say what happened and where in the app, never anything about their health beyond what the bug needs.",
"inputSchema": {
"properties": {
"details": {
"description": "What happened, where in the app, and what they expected; or, with issueId, what this person adds.",
"type": "string"
},
"issueId": {
"description": "A matching issue from find_issues.",
"type": "integer"
},
"kind": {
"enum": [
"bug",
"idea"
],
"type": "string"
},
"title": {
"description": "A new issue: one plain line, like \"Rest timer does not show on the watch\".",
"type": "string"
}
},
"required": [
"details"
],
"type": "object"
},
"name": "trainrec_report_issue",
"outputSchema": null
},
{
"description": "Creates a routine (a reusable workout plan the person starts from the app), or replaces one given its id and version. Same shape as a workout, without a day.",
"inputSchema": {
"properties": {
"exercises": {
"description": "In the order performed, by exercise id (built-in or custom).",
"items": {
"properties": {
"exerciseId": {
"type": "string"
},
"notes": {
"type": "string"
},
"sets": {
"items": {
"properties": {
"done": {
"description": "True for a set performed. False for a planned set. Default true.",
"type": "boolean"
},
"elevationM": {
"description": "Metres climbed in this set (a lap, split or whole run). Feet × 0.3048.",
"type": "integer"
},
"meters": {
"description": "For cardio exercises.",
"type": "number"
},
"reps": {
"type": "integer"
},
"restSeconds": {
"description": "Planned rest after this set, in seconds.",
"type": "integer"
},
"rpe": {
"description": "Rate of perceived exertion as the person reported it, 1 to 10 in half steps.",
"type": "number"
},
"seconds": {
"description": "For timed and cardio exercises.",
"type": "integer"
},
"type": {
"description": "Default normal.",
"enum": [
"warmup",
"normal",
"drop",
"failure"
],
"type": "string"
},
"weight": {
"description": "Total load moved (on a plate-loaded or Smith machine, the sled or bar plus the plates), added load for weighted bodyweight, or assistance for assisted. In `unit`.",
"type": "number"
}
},
"type": "object"
},
"type": "array"
},
"supersetId": {
"description": "Give exercises listed next to each other the same short label (e.g. \"a\") to make them a superset: the app alternates them set by set and rests only after each round.",
"type": "string"
}
},
"required": [
"exerciseId",
"sets"
],
"type": "object"
},
"type": "array"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"notes": {
"type": "string"
},
"summary": {
"type": "string"
},
"unit": {
"description": "Unit for every weight in this call. Defaults to the person's own unit.",
"enum": [
"lb",
"kg"
],
"type": "string"
},
"version": {
"type": "integer"
}
},
"required": [
"name",
"exercises"
],
"type": "object"
},
"name": "trainrec_save_routine",
"outputSchema": null
},
{
"description": "Logs a new workout, or replaces an existing one given its id and version: the whole workout as it should now be, so anything left out is removed. Sets default to done; planned sets for a later day have done: false. The change shows in the person's app with Undo.",
"inputSchema": {
"properties": {
"day": {
"description": "YYYY-MM-DD. Default today.",
"type": "string"
},
"exercises": {
"description": "In the order performed, by exercise id (built-in or custom).",
"items": {
"properties": {
"exerciseId": {
"type": "string"
},
"notes": {
"type": "string"
},
"sets": {
"items": {
"properties": {
"done": {
"description": "True for a set performed. False for a planned set. Default true.",
"type": "boolean"
},
"elevationM": {
"description": "Metres climbed in this set (a lap, split or whole run). Feet × 0.3048.",
"type": "integer"
},
"meters": {
"description": "For cardio exercises.",
"type": "number"
},
"reps": {
"type": "integer"
},
"restSeconds": {
"description": "Planned rest after this set, in seconds.",
"type": "integer"
},
"rpe": {
"description": "Rate of perceived exertion as the person reported it, 1 to 10 in half steps.",
"type": "number"
},
"seconds": {
"description": "For timed and cardio exercises.",
"type": "integer"
},
"type": {
"description": "Default normal.",
"enum": [
"warmup",
"normal",
"drop",
"failure"
],
"type": "string"
},
"weight": {
"description": "Total load moved (on a plate-loaded or Smith machine, the sled or bar plus the plates), added load for weighted bodyweight, or assistance for assisted. In `unit`.",
"type": "number"
}
},
"type": "object"
},
"type": "array"
},
"supersetId": {
"description": "Give exercises listed next to each other the same short label (e.g. \"a\") to make them a superset: the app alternates them set by set and rests only after each round.",
"type": "string"
}
},
"required": [
"exerciseId",
"sets"
],
"type": "object"
},
"type": "array"
},
"finishedAt": {
"description": "When it ended, ISO with offset. Marks a logged workout finished.",
"type": "string"
},
"id": {
"description": "Omit to create.",
"type": "string"
},
"name": {
"description": "e.g. \"Push Day\".",
"type": "string"
},
"notes": {
"type": "string"
},
"reopen": {
"description": "true takes the finish off a workout ended by mistake, so it is under way again.",
"type": "boolean"
},
"startedAt": {
"description": "When it started, ISO with offset, if the person said (\"this morning at 7\"). Kept when editing.",
"type": "string"
},
"summary": {
"description": "One short line for the change list, e.g. \"Logged Push Day\".",
"type": "string"
},
"unit": {
"description": "Unit for every weight in this call. Defaults to the person's own unit.",
"enum": [
"lb",
"kg"
],
"type": "string"
},
"version": {
"description": "Required when id is given.",
"type": "integer"
}
},
"required": [
"name",
"exercises"
],
"type": "object"
},
"name": "trainrec_save_workout",
"outputSchema": null
},
{
"description": "Reminders 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.",
"inputSchema": {
"properties": {
"amount": {
"description": "threshold and check only.",
"properties": {
"direction": {
"description": "As the person says it. threshold: over.",
"enum": [
"over",
"under"
],
"type": "string"
},
"number": {
"description": "The food number: kcal, a macro or a nutrient.",
"enum": [
"kcal",
"proteinG",
"carbsG",
"fatG",
"waterMl",
"fiberG",
"sugarG",
"addedSugarG",
"saturatedFatG",
"transFatG",
"cholesterolMg",
"sodiumMg",
"potassiumMg",
"calciumMg",
"magnesiumMg",
"ironMg",
"zincMg",
"vitaminAMcg",
"vitaminCMg",
"vitaminDMcg",
"vitaminB12Mcg",
"folateMcg",
"caffeineMg",
"alcoholG"
],
"type": "string"
},
"value": {
"description": "The amount, in the number's unit (kcal, g, mg, ml), as the person says it.",
"type": "number"
}
},
"required": [
"number",
"direction",
"value"
],
"type": "object"
},
"at": {
"description": "Local time, HH:MM 24-hour, as the person says it. Required for every kind but goal; ask them if they didn't say.",
"type": "string"
},
"date": {
"description": "workout only: the one day it is for, YYYY-MM-DD, instead of days.",
"type": "string"
},
"days": {
"description": "1 = Monday to 7 = Sunday. Leave out for every day.",
"items": {
"maximum": 7,
"minimum": 1,
"type": "integer"
},
"type": "array"
},
"goal": {
"description": "goal only.",
"properties": {
"number": {
"enum": [
"kcal",
"proteinG",
"carbsG",
"fatG",
"waterMl",
"fiberG",
"sugarG",
"addedSugarG",
"saturatedFatG",
"transFatG",
"cholesterolMg",
"sodiumMg",
"potassiumMg",
"calciumMg",
"magnesiumMg",
"ironMg",
"zincMg",
"vitaminAMcg",
"vitaminCMg",
"vitaminDMcg",
"vitaminB12Mcg",
"folateMcg",
"caffeineMg",
"alcoholG"
],
"type": "string"
},
"when": {
"description": "reached says when calories or a limit is hit or passed, or a goal like protein is met.",
"enum": [
"approaching",
"reached"
],
"type": "string"
},
"within": {
"description": "approaching: how much is left when it says so, in the number's unit (kcal, g, mg). Required for approaching; ask the person if they didn't say.",
"type": "number"
}
},
"required": [
"number",
"when"
],
"type": "object"
},
"id": {
"description": "To change an existing reminder. Leave out to add one.",
"type": "string"
},
"kind": {
"enum": [
"weigh_in",
"log_food",
"workout",
"streak",
"goal",
"custom",
"recap",
"threshold",
"check"
],
"type": "string"
},
"meal": {
"description": "log_food only.",
"enum": [
"breakfast",
"lunch",
"dinner",
"snack"
],
"type": "string"
},
"on": {
"description": "Default true. false keeps it but sends nothing.",
"type": "boolean"
},
"streak": {
"description": "streak only. training_weeks: weeks in a row with a workout; training_days: days in a row with a workout or food logged.",
"enum": [
"training_weeks",
"training_days"
],
"type": "string"
},
"text": {
"description": "custom only. What it says, up to 80 characters: \"Take creatine\".",
"type": "string"
},
"version": {
"description": "Required with id.",
"type": "integer"
}
},
"required": [
"kind"
],
"type": "object"
},
"name": "trainrec_set_reminder",
"outputSchema": null
},
{
"description": "Sets the daily calorie and macro targets, and optionally a target for any other nutrient (the keys in overview.foodNutrients): a ceiling for the ones to limit, such as sodiumMg, cholesterolMg, sugarG, saturatedFatG or caffeineMg, and an amount to reach for the rest, such as potassiumMg, fiberG or calciumMg. nutrients left out keeps the ones already set; {} clears them.",
"inputSchema": {
"properties": {
"carbsG": {
"type": "number"
},
"fatG": {
"type": "number"
},
"kcal": {
"type": "number"
},
"nutrients": {
"properties": {
"addedSugarG": {
"type": "number"
},
"alcoholG": {
"type": "number"
},
"caffeineMg": {
"type": "number"
},
"calciumMg": {
"type": "number"
},
"cholesterolMg": {
"type": "number"
},
"fiberG": {
"type": "number"
},
"folateMcg": {
"type": "number"
},
"ironMg": {
"type": "number"
},
"magnesiumMg": {
"type": "number"
},
"potassiumMg": {
"type": "number"
},
"saturatedFatG": {
"type": "number"
},
"sodiumMg": {
"type": "number"
},
"sugarG": {
"type": "number"
},
"transFatG": {
"type": "number"
},
"vitaminAMcg": {
"type": "number"
},
"vitaminB12Mcg": {
"type": "number"
},
"vitaminCMg": {
"type": "number"
},
"vitaminDMcg": {
"type": "number"
},
"waterMl": {
"type": "number"
},
"zincMg": {
"type": "number"
}
},
"type": "object"
},
"proteinG": {
"type": "number"
}
},
"required": [
"kcal",
"proteinG",
"carbsG",
"fatG"
],
"type": "object"
},
"name": "trainrec_set_targets",
"outputSchema": null
},
{
"description": "The person's settings: weight unit, which nutrients beyond the macros show on their Food and Today screens, how much of a day's workout calories is added to their calorie target, their weight goal, and what the sled or bar of a plate-loaded or Smith machine weighs empty (baseWeights; a set's weight is the total, so plates loaded = weight - base). Also lists what only the person can change on the phone. Read-only.",
"inputSchema": {
"properties": {},
"type": "object"
},
"name": "trainrec_settings",
"outputSchema": null
},
{
"description": "Puts a record back the way it was before one change, given the change's seq. Refused if the record has been changed again since.",
"inputSchema": {
"properties": {
"seq": {
"type": "integer"
}
},
"required": [
"seq"
],
"type": "object"
},
"name": "trainrec_undo_change",
"outputSchema": null
},
{
"description": "Removes everything one import added, given its batch id. All or nothing: refused if any of it has been edited since.",
"inputSchema": {
"properties": {
"batch": {
"type": "string"
}
},
"required": [
"batch"
],
"type": "object"
},
"name": "trainrec_undo_import",
"outputSchema": null
}
]
}Verify it yourself
curl -s https://api.teppi.xyz/v1/evidence/sha256:19f18de30c948aebe92e6187d48af6016551c768aee1afb16b56f95943a768d3 | sha256sum