Skip to main content
Glama
migros-mcp

migros-mcp

by herp75

Add several products to basket

add_items_to_basket
DestructiveIdempotent

Adds multiple products to a Migros basket in one call, replacing existing quantities, and returns availability, item count, and totals; requires authentication.

Instructions

Add several products to the user's basket in one call, e.g. the ingredients of a recipe. Each quantity replaces the one already in the list. Returns each product's quantity and availability (e.g. AVAILABLE, UNAVAILABLE, INSUFFICIENT_STOCK), the item count and totals. Requires authentication.

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

Input Schema

NameRequiredDescriptionDefault
itemsYesProducts and quantities, each product once.
verboseNotrue returns the whole list. Default: only the changed item(s), the item count and the totals.
shoppingListIdNoOptional list ID from get_shopping_lists; omit to use the first list.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructive=true, idempotent=true and openWorld=true; the description reinforces this by stating that each quantity replaces the existing one, which explains the destructive profile without contradicting it. It also discloses the return payload (per-item quantity and availability states, item count, totals) even though no output schema exists, and flags the authentication requirement. It stops short of stating limits like the 50-item cap or what happens on partial failures.

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 tight sentences: purpose first, behavioral semantics second, return values third. No filler, no restatement of the tool name, and the most important constraint (quantity replaces) is placed early.

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 3-parameter mutation tool with no output schema, the description covers purpose, mutation semantics, return value shape, and auth. Missing only edge-case behavior such as the 50-item maximum being exceeded, how the optional shoppingListId default is resolved, or whether partial batches can fail – minor gaps given the fully documented schema.

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 100%, so the schema already explains productId, quantity replacement, verbose and shoppingListId in full. The description adds only the replacement semantics for quantity, which the schema itself already states ('REPLACES an existing quantity'), and says nothing about verbose or shoppingListId beyond the schema. Baseline 3 is appropriate.

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 ('Add several products to the user's basket') and scopes it as a bulk operation ('in one call'), which implicitly separates it from the singular add_to_basket sibling. The recipe-ingredients example makes the intended shape of the input concrete.

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 phrase 'in one call' plus the recipe example implies the tool is for multi-item additions, and the replacement semantics hint at update-like usage. However, it never explicitly says when to use this rather than add_to_basket or update_basket_quantity, and offers no exclusions or prerequisites beyond the auth note.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.