Skip to main content
Glama
mercadona-mcp
by Syuf1514

Shopping list → cart

add_shopping_list_to_cart

Add every product from a specified shopping list to the cart, using each item's listed quantity or a default of one. Provide the list ID to populate the cart without checking out or paying.

Instructions

Add all products of a shopping list to the cart (quantity from the list, default 1).

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": {
      "list_id": "<list_id>"
    },
    "name": "add_shopping_list_to_cart"
  }
}

Input Schema

NameRequiredDescriptionDefault
list_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare a non-read-only, open-world, non-destructive mutation, so the safety profile is covered. The description adds useful traits beyond that: it is a bulk operation ('all products') and quantities come from the list with a default of 1. It does not disclose merge-vs-replace semantics with an existing cart, partial-failure behavior, or what happens to unavailable products.

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?

A single front-loaded sentence with the core action first and the quantity nuance in parentheses; no filler. It is arguably too terse given the untested edge cases, but nothing is wasted.

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 one-parameter mutation with no output schema, the definition covers what the tool does but omits anything about the resulting cart state, duplicate handling, or error conditions – details an agent would need to predict the outcome. Annotations carry part of the burden, so the gap is moderate rather than severe.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and there is one parameter, list_id, whose semantics the description barely touches – it never says the value must come from list_shopping_lists/get_shopping_list or what identifier format is expected. The quantity-default note is helpful but concerns list contents, not the schema parameter.

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?

States a specific verb ('Add') and resource ('all products of a shopping list to the cart'), so an agent can distinguish it from add_order_to_cart and add_regulars_to_cart by the source resource. It does not explicitly name siblings, but the action and input are 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 implied trigger is clear – you have a shopping list and want its contents in the cart – but the description never says when to prefer this over add_order_to_cart or add_regulars_to_cart, nor does it state prerequisites (e.g., cart must exist, list must be non-empty). Guidance is inferred rather than stated.

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