Set or clear a day's values
set_valuesSet a day's value outright, or clear it with null: a stated total ("make today's water 2 litres"), a correction, a yes/no that changed. For calories and macros this states the day's total; to change one food, use edit_food. Overwrites what the day holds, so confirm with the person first. Undo puts it back.
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>",
"values": "<values>"
},
"name": "set_values"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Omit for today. | |
| values | Yes | Field name to the value the day should hold, or null to clear it. | |
| idempotency_key | Yes | A new random string per write (8-128 of A-Z a-z 0-9 - _ . :); send the same one to retry, never a new one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| written | Yes | ||
| replayed | No | ||
| write_id | No |