Skip to main content
Glama
mercadona-mcp
by Syuf1514

Re-order into cart

add_order_to_cart

Adds every product from a previous order to the cart with matching quantities. Use list_orders to find the order ID and optionally exclude products.

Instructions

Add every product from a past order to the cart (with the same quantities). Use list_orders to find the id.

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": {
      "order_id": "<order_id>"
    },
    "name": "add_order_to_cart"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idYes
exclude_product_idsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, so the write/safety profile is covered. The description adds the useful detail that quantities are carried over from the past order. However, it leaves unstated whether items are appended to or merged with an existing cart, and what happens when a past product is no longer available.

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?

Two short sentences, zero waste, with the core action front-loaded and the prerequisite hint second. Nothing could be removed without losing information.

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?

This is a mutation tool with no output schema and no annotations describing auth requirements, so the description bears real weight. It is adequate for the happy path but omits the exclusion parameter and the cart-merge semantics, both of which affect correct invocation.

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%, so the description must carry parameter meaning. It hints at how to obtain order_id via list_orders, but says nothing at all about exclude_product_ids, leaving one of two parameters entirely undocumented everywhere.

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 names a specific verb and resource ("Add every product from a past order to the cart") and clarifies the quantity behavior, which distinguishes it from add_regulars_to_cart and add_shopping_list_to_cart by source. It stops short of explicitly contrasting those siblings, but the source-based scoping is enough for an agent to pick correctly.

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?

It gives a concrete prerequisite workflow: use list_orders to find the id. That is real routing guidance rather than implied usage. It does not say when not to use this tool (e.g., when the cart already has items or when products are unavailable), so it falls short of a 5.

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