record_plan_rationale
Record the coach-voice explanation of the AI Coach run you are performing for this client — what you looked at, what you changed and why, and the numbers behind it. This is exactly what the client reads on their 'Why this changed' screen, so write it like a human coach speaking to them: plain language, their real figures, no tool names, no mention of steps or systems. Call this once, after you have created or adjusted their plans.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| math | No | Calculations behind the plan (TDEE, macro targets, deficits) so the client sees it was worked out, not guessed. | |
| inputs | No | The real figures you based the decision on (check-ins, recovery, compliance, measurements). | |
| changes | No | Each concrete change and its reason, e.g. what: "Squats 5x5 to 3x5", why: "Sleep dropped and resting HR climbed." | |
| clientId | Yes | ||
| headline | Yes | One sentence on the intent, e.g. "Eased off lower body this week so you actually recover." |