Skip to main content
Glama

The Meal Plan Vault

Update pantry item

update_pantry_item
Idempotent

Change the quantity, unit, storage location, expiration date, or notes on a pantry item, for example after cooking with some of it.

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

Input Schema

NameRequiredDescriptionDefault
idYes
unitNo
notesNo
locationNo
quantityNo
expiration_dateNoYYYY-MM-DD, or "" to clear

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare the mutation is non-destructive, idempotent, and closed-world, so the safety profile is covered. The description adds only that this is a targeted field change; it does not say whether omitted fields are preserved, what happens to quantity when passed as a string, or what the call returns. That partial-update semantics question is the main unresolved behavior for a mutation tool.

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

Conciseness5/5

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

A single sentence, front-loaded with the verb and field list, with the example scenario at the end. No filler or redundancy.

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 a 6-parameter mutation tool with no output schema, the definition covers the what and one example when, but leaves partial-update behavior and quantity-type handling unaddressed. Adequate to invoke correctly in the common case, incomplete for edge cases.

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 description coverage is low (17%) — only expiration_date is documented, including the ""-to-clear convention. The description compensates by naming quantity, unit, storage location, expiration date, and notes, which maps names to intent (location = storage location), but it adds no semantics for the dual string/number quantity type, the enum choices, or omitted-field behavior.

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?

Names a specific verb+resource ("Change ... on a pantry item") and enumerates the mutable fields, which cleanly separates it from add_pantry_item and remove_pantry_item by implication. It stops short of explicitly naming a sibling to avoid, but the operation is unambiguous.

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?

The clause "for example after cooking with some of it" gives a concrete triggering scenario, which is real usage guidance. It never states when not to use it or which alternative to pick (e.g. add_pantry_item for a new item, remove_pantry_item for deletion), so routing is only implied.

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