Skip to main content
Glama

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

Skift vare

replace_shopping_list_item
DestructiveIdempotent

Use this when the user wants an item on their Goma shopping list to be another product, e.g. one of the alternatives add_items_to_shopping_list returned, or a free-text item to become a real product. Needs itemId from add_items_to_shopping_list or get_shopping_list and productId from an earlier result. The quantity stays. Returns the new product.

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": {
      "itemId": "<itemId>",
      "productId": "<productId>"
    },
    "name": "replace_shopping_list_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemIdYes
productIdYes

Output Schema

NameRequiredDescriptionDefault
itemIdYes
productYes

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is known. The description adds useful behavior beyond that: the quantity is preserved and the call returns the new product. It does not state what happens to the previous product/price history or any permission requirements, which would matter for a destructive replacement.

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?

Three sentences, trigger first, prerequisites second, behavioral note last – well front-loaded with little waste. The only questionable sentence is "Returns the new product," which duplicates the existing output schema.

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 2-param, non-nested tool with full annotations and an output schema, the description covers purpose, trigger, provenance of both IDs, and the key invariant (quantity unchanged). Remaining gaps – the fate of the replaced item and validation behavior for productId – are minor but real.

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 0%, so the description carries the burden, and it does identify the provenance of both IDs (itemId from the shopping list, productId from an earlier result). That is meaningful but shallow: nothing about productId format, whether the old product is discarded, or what happens if productId is not a valid catalog item. A 3 for two parameters with provenance but no deeper semantics is arguably generous; the schema at least marks both as required integers/strings.

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 description states a concrete verb+resource: making a shopping list item "be another product," with the two concrete cases (a product alternative, or a free-text item becoming real). It implicitly separates itself from update-type siblings by noting "The quantity stays," but never names the alternative tool for quantity edits, so the differentiation is inferential rather than explicit.

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?

Strong trigger phrasing ("Use this when the user wants...") plus two worked scenarios, and it tells the agent where the required IDs come from (add_items_to_shopping_list, get_shopping_list, or an earlier result). It stops short of stating when NOT to use it, e.g. to change quantity or to remove an item, which the sibling names update_shopping_list_item and remove_shopping_list_item suggest exist.

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