retire_custom_food
Retire or restore a custom food to control whether it appears in new entries while existing diary entries keep working.
Instructions
Retire a custom food so it stops being offered for new entries.
This is how Cronometer removes a food; there is no delete. Diary entries that already use it keep working. Pass retired=False to bring it back.
Args: food_id: The custom food's ID. retired: True to retire, False to restore.
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": {
"food_id": "<food_id>"
},
"name": "retire_custom_food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| food_id | Yes | ||
| retired | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |