Skip to main content
Glama

mechacut

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

NameRequiredDescriptionDefault
as_ofNooptional ISO DATE 'now': WITHIN / LAST_DAY / EXPIRED band
categoryYes
cooked_atYesnaive ISO when the food came out of the oven, 2026-11-26T17:00
frozen_atNooptional ISO/DATE the food entered the freezer: 2-6 month quality window with month-end clamp
stored_atYesnaive ISO into the fridge — required: without it the 2-hour gate cannot be judged
warm_roomNoambient above 90F / 32C: the gate drops to 1 hour

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and largely meets it: STRICT comparison semantics are spelled out with a worked boundary ('exactly 2 h passes, 2 h 01 discards'), the freezer contradiction is resolved by explicit UNION rather than a silent pick, out-of-category inputs are refused by name, and reheat targets are given. It stops short of describing the response shape beyond the band names, but the behavioral profile is unusually well disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The relevant rules are front-loaded, but the text is a dense run-on larded with press citations and asides ('headlines expired on December 1', 'same grammar as the EXCEEDING-3-h rule of the flight table', 'Free.') that consume attention without helping an agent invoke the tool. The rules would be far clearer as a short bulleted list.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter domain-rules tool with no output schema, the description supplies the decision logic, the boundary conditions, the refusal policy, and the reheat guidance an agent needs to call and interpret it. Only the return structure beyond the WITHIN/LAST_DAY/EXPIRED band labels is left thin.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 83%, so the baseline is 3, and the description genuinely adds meaning on top: cooked_at anchors the 2-hour clock, stored_at is framed as mandatory for that gate, warm_room is tied to the over-90F one-hour case, and frozen_at is tied to the union window. The strict-comparison and day-of-cooking counting rules are semantics the schema does not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence states the resource ('the leftovers window as ISO dates') and the authority it encodes (USDA FSIS), and the body makes clear it returns a computed safety band rather than raw facts. The verb is implicit — 'decides by named rule' — and the news-citation framing obscures the core function, but an agent can still tell this computes a leftovers shelf-life window and is distinct from food_poultry or food_ovenschedule.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It scopes usage by category ('turkey|stuffing|gravy|leftovers; anything else is a refusal by name') and by input form ('slash dates refused'), and it explains the 2-hour vs 1-hour branch condition. It never says when to prefer this over the poultry or oven-schedule siblings, so the routing decision is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.