Suggest a meal
propose_mealSuggest a meal for the person to approve in the Metrics Nest app. This only leaves a suggestion: nothing is logged until they approve it and then log it from their phone, where they can change it on the plate first; no log entry is ever created, changed or deleted here. Give each food a name and, where you can, its grams and its calories and macros for that portion; leave out any figure you do not know rather than guessing. Make up a new idempotency_key for each suggestion and send the same one only when retrying this exact call. Works only where the person allowed this connection to suggest (get_profile says can_propose). list_meal_proposals shows what became of each suggestion.
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": {
"idempotency_key": "<idempotency_key>",
"title": "<title>",
"planned_for": "<planned_for>",
"items": "<items>"
},
"name": "propose_meal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | No | Which meal of the day it is for. | |
| items | Yes | The foods on the plate. | |
| title | Yes | What the meal is, as the person will see it: "Chicken rice bowl". | |
| client | No | For a coach: a client id from list_clients, to read that client. Omitted: your own account. | |
| rationale | No | Why this meal, in a few sentences the person reads before approving. | |
| planned_for | Yes | The day it is meant for, in the account time zone: today up to 28 days ahead. | |
| idempotency_key | Yes | Unique per suggestion; the same key again returns the first suggestion instead of a duplicate. |