Almost Fire
v1.3.1Strength training plans for 26 weeks, plus set, meal and progress logging in Almost Fire.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
make_plan Make a training plan
Use this when someone asks for a strength, gym, weightlifting or muscle-building program or workout plan, at a gym or at home. Builds all 26 weeks from Almost Fire's plan engine, the one the app uses: the split for their days, each session's exercises with sets, reps, rest and effort, a lighter week to end each block, and gentler swaps for anything they protect. No account needed. Ask how many days they can train first; fill the rest from what they've said and leave the others null. Do not use for running or race plans, sport-specific conditioning, diet plans or injury rehab.
| Parameter | Type | Description |
|---|---|---|
daysPerWeek * | integer | Training days a week. |
buildPriorities | Up to two areas to build most. | |
equipment | string | null | commercial (a full gym), home (a home gym with a rack) or dumbbells only. |
goal | string | null | strength, muscle or fat_loss; null when they haven't said. |
loveLifts | Lifts they want in. | |
protect | Areas to go easy on (a sore knee, a shoulder): the plan picks gentler options there. | |
sessionMinutes | integer | null | How long a session can be. |
skipLifts | Lifts they don't want. | |
split | string | null | full, upper_lower, ppl or body_part; auto or null picks the one that suits their days. |
style | How they like to train: supersets, straight sets, heavy, pump, machines, free weights, a finisher. |
save_plan Save the plan to Almost Fire
Use this when the person wants to keep, save or start a plan make_plan made, or presses Save on its card. Saves the plan to their Almost Fire account for free and replaces any unstarted plan. Send the answers make_plan used, so the saved plan is the one they saw. The card then opens their plan page in Almost Fire, where their first week starts. emailWeekly true also opts them into emails with each week's sessions on Monday mornings, until they start in the app. Do not use before make_plan has shown them a plan, or to change the plan of someone who already trains in Almost Fire.
| Parameter | Type | Description |
|---|---|---|
daysPerWeek * | integer | Training days a week. |
buildPriorities | Up to two areas to build most. | |
emailWeekly | boolean | null | true only when the person said yes, in this chat, to an email of each week's sessions on Monday mornings. Null otherwise; never assume it. |
equipment | string | null | commercial (a full gym), home (a home gym with a rack) or dumbbells only. |
goal | string | null | strength, muscle or fat_loss; null when they haven't said. |
idempotencyKey | string | null | A new random id for this change (a UUID). Send the same one again only to retry this exact change. |
loveLifts | Lifts they want in. | |
protect | Areas to go easy on (a sore knee, a shoulder): the plan picks gentler options there. | |
sessionMinutes | integer | null | How long a session can be. |
skipLifts | Lifts they don't want. | |
split | string | null | full, upper_lower, ppl or body_part; auto or null picks the one that suits their days. |
style | How they like to train: supersets, straight sets, heavy, pump, machines, free weights, a finisher. |
show_exercise Show an exercise
Use this when someone asks how to do an exercise, which muscles it works, or what to do instead. Shows it on the body map with its equipment, its cues and swaps that train the same thing. No account needed. Do not use to diagnose pain or to give rehab exercises.
| Parameter | Type | Description |
|---|---|---|
exercise * | string | The exercise's name ("Romanian deadlift") or Almost Fire key ("rdl"). |
get_today Today
Use this when the person asks what's on today or how today's session is going, and before logging a set. Reads today's session (or the next one) in their Almost Fire account with every exercise, its target and the sets logged, this week's sessions and training volume, and their food and weight so far today. Do not use for another day's session; use get_schedule and get_session.
get_schedule Sessions in a range
Use this when the person asks what's coming up this week or next, or what they did on other days. Lists their sessions between two ISO times (from, to), each with its id, day, time and status. Do not use for today's session; use get_today.
| Parameter | Type | Description |
|---|---|---|
from * | string | Start of the range, an ISO date-time. |
to * | string | End of the range, an ISO date-time. |
get_session One session
Use this when you need one session in full, by its id from get_today or get_schedule. Reads its exercises (slots) with each target, the exercises each slot allows, and the sets logged. Do not use to list sessions; use get_schedule.
| Parameter | Type | Description |
|---|---|---|
sessionId * | string | The session's id, from get_today or get_schedule. |
log_set Log a set
Use this when the person tells you a set they did. Give the session and slot from get_today or get_session, and the load and reps they said. Never invent a number. loadUnit kg or lb as they said it (label for a machine's own numbers); rir only if they say it. setNumber null logs the next set. Comes back with an Undo. Do not use to correct a set already logged; use edit_set.
| Parameter | Type | Description |
|---|---|---|
idempotencyKey * | string | A new random id for this change (a UUID). Send the same one again only to retry this exact change. |
load * | number | The weight they lifted, in loadUnit. |
reps * | integer | The reps they did. |
sessionId * | string | The session's id, from get_today or get_schedule. |
slot * | string | The exercise's slot in that session, from get_today or get_session. |
loadUnit | string | null | kg or lb as they said it, or label for a machine's own numbers. Null is kg, or the machine's numbers on a labelled machine. |
rir | number | null | Reps in reserve, only when they say it; null otherwise. |
setNumber | integer | null | Which set, from 1. Null logs the next set not yet logged. |
edit_set Correct a set
Use this when the person corrects a set they already logged. Give its setId from get_today or get_session and only the values they change; null keeps the rest. Comes back with an Undo. Do not use to log a new set; use log_set.
| Parameter | Type | Description |
|---|---|---|
idempotencyKey * | string | A new random id for this change (a UUID). Send the same one again only to retry this exact change. |
setId * | string | The set's id, from get_today or get_session. |
load | number | null | The corrected weight; null keeps it. |
loadUnit | string | null | The new load's unit, as in log_set. Only with a new load. |
reps | integer | null | The corrected reps; null keeps them. |
rir | number | null | Corrected reps in reserve, only when they say it; null keeps it. |
delete_set Remove a set
Use this when the person asks to remove a set they logged by mistake. Give its setId. Comes back with an Undo. Do not use to change a set's numbers; use edit_set.
| Parameter | Type | Description |
|---|---|---|
idempotencyKey * | string | A new random id for this change (a UUID). Send the same one again only to retry this exact change. |
setId * | string | The set's id, from get_today or get_session. |
list_alternatives Swaps for an exercise
Use this when the person wants a different exercise in a session (a busy machine, a sore joint, missing kit). Lists the swaps that train the same movement in that slot and week, best first, by sessionId and slot. Nothing changes; swap with swap_exercise. Do not use to explain how an exercise is done; use show_exercise.
| Parameter | Type | Description |
|---|---|---|
sessionId * | string | The session's id, from get_today or get_schedule. |
slot * | string | The exercise's slot in that session, from get_today or get_session. |
swap_exercise Swap an exercise
Use this when the person asks to swap the exercise in a session. Give the sessionId and slot, and the exerciseKey they chose, or a same-movement one from list_alternatives when they leave it to you. The new exercise brings its own rules, and loads never carry over between exercises. untilWeek null swaps that session only; a week keeps the swap for that day through that program week. Comes back with an Undo. Do not use to move a session; use move_session.
| Parameter | Type | Description |
|---|---|---|
exerciseKey * | string | The exercise to put in the slot: its key from list_alternatives or get_session. |
idempotencyKey * | string | A new random id for this change (a UUID). Send the same one again only to retry this exact change. |
sessionId * | string | The session's id, from get_today or get_schedule. |
slot * | string | The exercise's slot in that session, from get_today or get_session. |
untilWeek | integer | null | Keep the swap for that day through this program week (the plan keeps going past week 26); null swaps this session only. |
update_session Start or finish a session
Use this when the person starts, finishes or skips a session, or says how it felt. status IN_PROGRESS starts it, DONE finishes it and SKIPPED skips it; feeling is 1 to 5; notes and gym as they say. Null leaves a field as it is. Comes back with an Undo. Do not use to move a session to another day; use move_session.
| Parameter | Type | Description |
|---|---|---|
idempotencyKey * | string | A new random id for this change (a UUID). Send the same one again only to retry this exact change. |
sessionId * | string | The session's id, from get_today or get_schedule. |
feeling | string | null | How it felt, 1 to 5; an empty string clears it, null leaves it. |
gym | string | null | The gym they trained at, as they name it; null leaves it. |
notes | string | null | Their notes on the session; an empty string clears them, null leaves them. |
status | string | null | IN_PROGRESS starts it, DONE finishes it, SKIPPED skips it, PLANNED puts it back; null leaves it. |
move_session Move a session
Use this when the person asks to move a session to another day or time. Give its sessionId and the new start and end as ISO times. Comes back with an Undo. Do not use to skip a session; use update_session.
| Parameter | Type | Description |
|---|---|---|
end * | string | The new end, an ISO date-time. |
idempotencyKey * | string | A new random id for this change (a UUID). Send the same one again only to retry this exact change. |
sessionId * | string | The session's id, from get_today or get_schedule. |
start * | string | The new start, an ISO date-time. |
log_cardio Log cardio
Use this when the person tells you about cardio they did: a run, a ride, the rower, a walk. Record cardio the person did, with the numbers they give: minutes always; distance, heart rate, level, incline, energy and intervals only when given. Never invent them. effort is a talk test: easy (could hold a conversation), steady (short sentences), hard (a few words). Give sessionId to count it in that session (it fills the session's planned cardio when it is the same exercise), or null for cardio on its own. Null startedAt is just finished. Cardio counts as minutes, never kilograms. Applied immediat…
| Parameter | Type | Description |
|---|---|---|
exerciseKey * | string | Which cardio: bike, treadmill, run, walk, rower, skierg, stairs, elliptical, swim. |
idempotencyKey * | string | A new random id for this change (a UUID). Send the same one again only to retry this exact change. |
minutes * | number | How long, in minutes. |
avgHeartRate | integer | null | Average heart rate in beats a minute, only if they give it. |
distanceKm | number | null | Distance in kilometres, only if they give it. |
effort | string | null | The talk test: easy (could hold a conversation), steady (short sentences), hard (a few words). |
incline | number | null | Incline in percent, only if they give it. |
intervals | The intervals they did; null for steady cardio. | |
kcal | number | null | Calories the machine or watch showed, only if they give it. |
level | number | null | The machine's resistance level, only if they give it. |
maxHeartRate | integer | null | Highest heart rate in beats a minute, only if they give it. |
sessionId | string | null | The session to count it in, from get_today; null for cardio on its own. |
startedAt | string | null | When it started, an ISO date-time; null is just finished. |
record_checkin Check in
Use this when the person wants to check in about training or asks to record pain or swelling. Records their check-in. A morning milestone can post to their crew and notify crew members. Do not use to diagnose pain, when symptoms were mentioned only to ask for advice, or to log their weight.
| Parameter | Type | Description |
|---|---|---|
idempotencyKey * | string | A new random id for this change (a UUID). Send the same one again only to retry this exact change. |
symptoms * | object | What they reported; null for anything they didn't say. |
note | string | null | Anything else they said, in their words. |
readiness | integer | null | How they feel today: 1 Flat, 2 Meh, 3 Okay, 4 Good, 5 On fire. |
sessionId | string | null | The session it's about, from get_today; null for a morning check-in. |
log_weight Log a weigh-in
Use this when the person tells you their weight. Give the weight and unit, and when (null is now). Targets follow the smoothed trend, never one reading. Comes back with an Undo. Do not use to set a weight goal.
| Parameter | Type | Description |
|---|---|---|
idempotencyKey * | string | A new random id for this change (a UUID). Send the same one again only to retry this exact change. |
weight * | number | The weight the scale showed, in unit. |
measuredAt | string | null | When they weighed, an ISO date-time; null is now. |
unit | string | null | kg or lb; null is their program's unit. |
open_camera Open the Almost Fire camera
Use this when the person wants to log a meal from a photo but hasn't attached one, or the app can't hand you their photo. Opens the Almost Fire camera in the chat: they take or choose a photo there, Stoke reads each food with its grams and calories, and Log saves it. Do not use when they've attached a photo; use read_meal_photo.
| Parameter | Type | Description |
|---|---|---|
note | string | null | Anything they said about the meal, for the read. |
read_meal_photo Read a meal photo
Use this when the person attaches a photo of food they ate or will eat. Returns estimated foods, grams, calories and macros for a plate, nutrition per 100 g for a packet, or grams for a kitchen scale. Processing uses one read from their daily food-photo allowance. Review the estimates and corrections with them before logging separately with log_foods or Log it on the card. Do not use for a photo that isn't food, or to judge anyone's body.
| Parameter | Type | Description |
|---|---|---|
photo * | object | The photo they attached. |
note | string | null | Anything they said about it ("half the rice", "oat flat white"). |
read_meal_photo_upload Read the camera's photo
Processes a photo from the Almost Fire camera card using one read from their daily food-photo allowance. The card shows the result for review. Log it saves the food separately.
| Parameter | Type | Description |
|---|---|---|
image * | string | The photo, base64. |
mimeType * | string | The photo's type, such as image/jpeg. |
note | string | null | Anything they said about it. |
search_foods Find their foods
Use this when the person tells you a food they ate without a photo, before log_foods. Find the person's own foods before anything else, by name or by kind: the words they used ("protein powder", "milk", "my usual bread"), not a brand you guess. mine is their saved foods that fit, each with an id, macros per 100 g, their usual grams (lastGrams), match (name: its name holds the words; kind: it is that kind of food, so "protein powder" finds their whey; word: only the last of their words, the one that says what it is, fits, so it is a different food of that sort, never theirs unless they say so)…
| Parameter | Type | Description |
|---|---|---|
query * | string | The words they used for the food, such as "protein powder" or "my usual bread"; several foods separated by semicolons ("oats; milk; whey") come back as foods, one result each. |
log_foods Log a meal
Use this when the person has agreed what they ate and wants it logged. Logs one entry per food using the reviewed photo estimates, a saved food or recipe by id and grams, or a named estimate with its serving and nutrients. Logging a saved food by grams can replace its usual portion. A correction to food already logged passes replaces, so the original comes off in the same change. Undo removes the log entries and brings back any replaced. eatenAt null is now. Do not use before they've agreed the foods and amounts, or for a meal they're only planning.
| Parameter | Type | Description |
|---|---|---|
idempotencyKey * | string | A new random id for this change (a UUID). Send the same one again only to retry this exact change. |
items * | array | One entry per food. |
eatenAt | string | null | When they ate, an ISO date-time; null is now. |
replaces | Logged entries this corrects (their ids, from get_nutrition), taken off in the same change so the original isn't left beside the fix; null adds to the log. |
delete_food_entry Remove a food
Use this when the person asks to remove a food they logged by mistake. Give its entry id from get_nutrition. Comes back with an Undo. Do not use for a food they still ate; log the right amount instead.
| Parameter | Type | Description |
|---|---|---|
entryId * | string | The logged food's entry id, from get_nutrition. |
idempotencyKey * | string | A new random id for this change (a UUID). Send the same one again only to retry this exact change. |
get_nutrition Food for a day
Use this when the person asks what they've eaten or how their calories and protein are going, and before removing a logged food. Reads a day's food (date null is today): every entry with its id, the totals against the day's targets, their usual foods and saved recipes, and the weight trend. Do not use to log food; use log_foods.
| Parameter | Type | Description |
|---|---|---|
date | string | null | The day, as YYYY-MM-DD; null is today. |
show_progress_chart Show a progress graph
Use this when the person asks to see their progress on a graph. Draws one of their Progress graphs from their records: lift_max or lift_volume per session for one exercise (key), weekly_volume, body_weight (90 days), cardio_distance, cardio_pace or cardio_heart_rate, daily_kcal or daily_protein (30 days). Training volume is the number that matters most. Do not use for sleep or heart-rate numbers, which stay in the Almost Fire app.
| Parameter | Type | Description |
|---|---|---|
metric * | string | Which of their Progress graphs to draw. |
key | string | null | The exercise key for lift_max, lift_volume and the cardio graphs; null otherwise. |
note | string | null | One line on what the graph shows, in your words. |
get_progress Progress
Use this when the person asks how they're progressing, in numbers. Reads their Progress page: training volume by week, bests, each lift's estimated max and trend, sessions done, bodyweight and cardio, as the app shows them. Do not use for a graph; use show_progress_chart.
get_weekly_review The Sunday review
Use this when the person asks how their week went or what changes next week. Reads the Sunday review of a program week (null is the latest): sessions, volume, new bests, the pace, each change Stoke made to next week with its reason, and what was kept and why. Those changes follow fixed rules: explain each from its reason, never invent another. Do not use for today's session; use get_today.
| Parameter | Type | Description |
|---|---|---|
week | integer | null | The program week (1 on; the plan keeps going past 26); null is the latest review. |
undo_review_change Keep next week as planned
Use this when the person doesn't want one of the changes the Sunday review made to next week. Give the change's index from get_weekly_review. Next week goes back to the program's target for that change. Do not use for a change they made themselves; use undo.
| Parameter | Type | Description |
|---|---|---|
idempotencyKey * | string | A new random id for this change (a UUID). Send the same one again only to retry this exact change. |
index * | integer | The change's index in that review, from get_weekly_review. |
week * | integer | The review's program week, from get_weekly_review. |
undo Undo a change
Use this when the person wants to take back a change made here (a logged set, meal, weigh-in or any other) while its Undo is open. Give the undo.id the change came back with. Do not use for a change they made in the Almost Fire app itself.
| Parameter | Type | Description |
|---|---|---|
idempotencyKey * | string | A new random id for this change (a UUID). Send the same one again only to retry this exact change. |
undoId * | string | The undo.id a change came back with. |