food_leftovers
The leftovers window as ISO dates, quoted from USDA FSIS. The press publishes the rule in stone: 'eat by Monday Nov 30' (NBC New York, 19-Nov-2026) and '72 hours is optimal' (ky3, same day) for the same turkey — headlines expired on December 1. This tool decides by named rule: the 2-hour discard clock starts at cooked_at (1 hour when warm_room=true, the over-90F case), STRICT comparison — exactly 2 h passes, 2 h 01 discards, same grammar as the EXCEEDING-3-h rule of the flight table; refrigerated leftovers last 3 to 4 days counted from the DAY of cooking (both FSIS pages agree), with the 4th day band named LAST_DAY; the two FSIS pages contradict each other on the freezer (2-6 months vs 3-4 months), so the rendered window is their UNION with both anchors cited, never a silent pick — and quality is labelled quality: safe indefinitely at 0F. Categories are the named set turkey|stuffing|gravy|leftovers; anything else is a refusal by name, no per-food State-extension table invented. All four times are ARGUMENTS (cooked_at, stored_at, frozen_at, as_of) — no wall clock; slash dates refused (aging precedent); reheat: 165F at the thermometer, gravy to a rolling boil. Free.
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": {
"category": "<category>",
"cooked_at": "<cooked_at>",
"stored_at": "<stored_at>"
},
"name": "food_leftovers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | optional ISO DATE 'now': WITHIN / LAST_DAY / EXPIRED band | |
| category | Yes | ||
| cooked_at | Yes | naive ISO when the food came out of the oven, 2026-11-26T17:00 | |
| frozen_at | No | optional ISO/DATE the food entered the freezer: 2-6 month quality window with month-end clamp | |
| stored_at | Yes | naive ISO into the fridge — required: without it the 2-hour gate cannot be judged | |
| warm_room | No | ambient above 90F / 32C: the gate drops to 1 hour |