set_shelf_life
Set how many days an item stays usable so HomeStock can flag it before it spoils; optionally note pantry, fridge, or freezer storage to explain the estimate.
Instructions
Teach HomeStock how long an item keeps, so it can be flagged before it rots. The agent supplies a sensible default on first purchase (fresh chicken ~3 days, milk ~7); the user overrides it. storage is one of pantry/fridge/freezer and is advisory — it explains the number.
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": {
"item": "<item>",
"days": "<days>"
},
"name": "set_shelf_life"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | ||
| item | Yes | ||
| storage | No |