Skip to main content
Glama
mercadona-mcp
by Syuf1514

Remove from cart

remove_from_cart
Destructive

Removes specified products from a Mercadona shopping cart entirely by product ID, enabling agents to update or correct cart contents.

Instructions

Remove the given products from the cart entirely.

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": {
      "product_ids": "<product_ids>"
    },
    "name": "remove_from_cart"
  }
}

Input Schema

NameRequiredDescriptionDefault
product_idsYes

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 destructiveHint=true and readOnlyHint=false, so the safety profile is covered. The description adds the meaningful detail that removal is complete rather than a partial quantity change, but says nothing about behavior for products not present in the cart, what the cart looks like afterwards, or whether the operation is reversible.

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?

A single front-loaded sentence with no filler or redundancy. Nothing is wasted, though brevity here mostly reflects under-specification rather than disciplined editing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive mutation with a fully undocumented parameter and no output schema, the definition is too thin. It does not explain identifier format, behavior on unknown products, or the resulting cart state, all of which an agent needs before invoking a destructive call.

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 carries the burden and mostly fails: it says "the given products" but never states that the parameter is an array of product identifiers, nor what identifier format is expected. Only the plurality matches the array shape in the schema.

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 gives a specific verb and resource ("Remove ... from the cart") and the word "entirely" signals full removal rather than a quantity decrement, which loosely separates it from update_cart. It does not name any sibling explicitly, so the agent still has to infer the boundary with clear_cart and update_cart.

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?

Usage is only implied: "entirely" suggests you call this when you want a line item gone rather than reduced, but there is no stated when-to-use, when-not-to-use, or alternative tool. Guidance for choosing between this, clear_cart, and update_cart is left to the agent.

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