Skip to main content
Glama

add_pantry_item

Add a food item. Expiry is estimated from shelf-life rules (category + storage) unless a printed expiry_date is given.

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": {
      "name": "<name>"
    },
    "name": "add_pantry_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
qtyNoNumeric amount, e.g. 2
nameYes
unitNoe.g. gal, jar, lb
notesNo
storeNo
storageNo
categoryNo
quantityNoFree text, e.g. '2 gal', '1 x 24ct'
expiry_dateNoPrinted date; overrides the estimate
low_thresholdNoFlag as low (and suggest for the shopping list) when qty <= this
purchase_dateNoDefaults to today

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose a genuinely important behavior — expiry is computed from shelf-life rules using category plus storage, and a printed expiry_date overrides that — but says nothing about defaults when category/storage are omitted, duplicate handling, or what the write returns.

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

Conciseness4/5

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

Two tight sentences with the primary action front-loaded and the derived-expiry caveat immediately after. No filler, though it is short enough that the brevity trades off against completeness.

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

Completeness3/5

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

For an 11-parameter mutation tool with no annotations and no output schema, the definition covers only the headline behavior. An agent still lacks guidance on the qty/quantity overlap, default storage and category values, and whether adding an item already in the pantry merges or duplicates it.

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

Parameters3/5

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

Schema coverage is 55%, so the description needs to compensate. It adds real meaning by explaining that category and storage jointly drive the shelf-life estimate, which the schema only hints at via enums; however, the expiry_date override is merely restated from the schema, and roughly half the parameters (qty vs quantity, low_threshold, store, notes, purchase_date) get no attention.

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?

States a specific verb and resource ("Add a food item") and adds a distinguishing note about expiry handling. It does not explicitly separate itself from shopping-list siblings like add_to_list, but the food-item framing is concrete enough to select on.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, and no mention of the obvious near-neighbor add_to_list for shopping items versus list_pantry for reading. The expiry sentence describes behavior, not usage selection, so the agent must infer the routing decision.

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.

Resources