Skip to main content
Glama

Chop it: meal planning, recipes, pantry and shopping

Update the pantry

update_pantry
Destructive

Updates the user's Chop it pantry from what they've bought, have or used up: add items (topping up existing ones), remove by name, or change or remove exact rows by pantryItemId. On add, location places stock directly in pantry, fridge or freezer; only compatible items in that location are topped up. Omit unknown quantities or expiry dates rather than guessing. Read back before retrying a top-up, which is additive. An ambiguous item returns its candidates without changing that item; other unambiguous items in the request can still change. Staples such as salt, pepper and oil are skipped. Edits the same pantry the app shows. Requires a linked Chop it account.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "update_pantry"
  }
}

Input Schema

NameRequiredDescriptionDefault
addNoItems to add (or top up when already present).
removeNoIngredient names to remove; matched on the same canonical key the app uses.
updateNoSet fields on an exact row; quantity replaces rather than adds.
removeItemIdsNoExact pantryItemIds from get_pantry to delete. Preferred for duplicate names.

Output Schema

NameRequiredDescriptionDefault
noteYes
addedYes
totalYes
appUrlYes
mergedYes
removedYes
skippedYes
updatedYes
notFoundYes
ambiguitiesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations (destructiveHint=true, idempotentHint=false) by disclosing partial-failure semantics: an ambiguous item returns its candidates while other unambiguous items in the same request still change. It also flags that top-ups are additive and therefore unsafe to blind-retry, and that only compatible items in the given location are topped up.

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?

Front-loaded with the operation list, then the caveats in rough order of risk. Dense but nearly every clause carries actionable meaning; the run-on construction of the opening sentence makes it harder to scan than it needs to be.

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

Completeness5/5

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

For a destructive, non-idempotent mutation with an output schema already documenting returns, the description covers the remaining gaps: auth prerequisite, partial success behavior, silent skipping of staples, and the additivity trap. Nothing an agent needs before calling it is missing.

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 100%, so the baseline is 3; the description earns above that by explaining the add-versus-top-up behavior and the constraint that location determines which compatible stock gets incremented, which the schema alone does not convey.

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

Purpose5/5

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

States a specific verb and resource ('Updates the user's Chop it pantry') and then enumerates the three distinct operations it performs: add/top-up, remove by name, and edit/delete by pantryItemId. An agent can tell this apart from the read-only get_pantry sibling without opening either schema.

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

Usage Guidelines4/5

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

Gives real operating guidance: omit unknown quantities or expiry rather than guessing, read back before retrying an additive top-up, staples are skipped, and a linked account is required. It never explicitly names get_pantry as the read alternative, so the when-to-use-which routing burden is only partly lifted.

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