Skip to main content
Glama

Goma – MCP for Danish grocery prices, meal plans, and recipes

Ret vare i spisekammeret

update_pantry_item
DestructiveIdempotent

Use this when the user wants to change one item in their Goma pantry (spisekammer): its amount, whether it is a staple, or whether Goma leaves it out of the shopping list. Needs pantryItemId from get_pantry. Only the fields included change; quantityValue and quantityUnit null clear the amount.

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

Input Schema

NameRequiredDescriptionDefault
isStapleNo
pantryItemIdYesFrom get_pantry or add_pantry_items.
quantityUnitNo
quantityValueNoTogether with quantityUnit.
excludeFromShoppingNo

Output Schema

NameRequiredDescriptionDefault
urlYesThe user's pantry (spisekammer) on goma.gg.
nameYes
isStapleYes
pantryItemIdYes
quantityUnitYes
quantityValueYes
excludeFromShoppingYes

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and idempotentHint=true, so the mutation and safety profile is known. The description adds genuinely new behavior: this is a partial update where 'only the fields included change', and that setting quantityValue and quantityUnit to null clears the amount. That null-clearing rule is the kind of thing annotations cannot express.

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?

Three short sentences with zero filler: trigger condition first, prerequisite second, partial-update and null semantics last. Every clause carries operational information an agent needs before calling.

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?

Return values need not be described because an output schema exists, and the mutation/partial-update behavior is covered. Minor gap: nothing states whether the pantry item must already exist or what happens on an unknown or deleted pantryItemId, which matters for a destructive mutation.

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 only 40%, so the description must carry weight, and it does: it names the three editable aspects, identifies pantryItemId's source, and explains null semantics for the quantity pair. The coupling of quantityValue to quantityUnit is reinforced by the schema but the description's 'null clear the amount' adds real meaning for the two least-documented fields.

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 (change) applied to a specific resource (one item in the Goma pantry) and enumerates the three mutable aspects: amount, staple flag, and shopping-list exclusion. The word 'pantry' alongside the sibling update_shopping_list_item makes the scope boundary readable 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?

'Use this when the user wants to change one item...' gives a clear trigger condition, and 'Needs pantryItemId from get_pantry' tells the agent which prerequisite call to run first. It does not explicitly rule out alternatives (e.g. add_pantry_items for new items, update_shopping_list_item for list entries), so it stops short of full routing guidance.

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