Move a logged food
move_itemMove a logged food row to another meal or day; returns a new row_id and confirms via re-read that both changed.
Instructions
Move a logged food row to another meal and/or day. The moved row gets a new row_id, returned here; the old one is gone. data.ok says a re-read confirms both.
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": {
"date": "<date>",
"row_id": "<row_id>",
"to_meal": "<to_meal>"
},
"name": "move_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Day as YYYY-MM-DD; when the user says today, yesterday, this week or a weekday, call get_today and count from its date. | |
| row_id | Yes | row_id of a food row on that day, from get_day (meals[].items[].row_id). | |
| to_date | No | Day to move it to, as YYYY-MM-DD (default: the same day); when the user says today, yesterday, this week or a weekday, call get_today and count from its date. | |
| to_meal | Yes | Meal to move it to. Meal slot. The keys are fixed, but users rename their meals in the app: match the user's words against get_day's meal_name and pass that meal's meal_key. Only the meals get_day lists exist. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No | describe_error() of what went wrong; docs/AGENTS.md, Results and errors. |