Skip to main content
Glama
walmart-ca-mcp
by anaqi

Remove from Walmart.ca cart

remove_from_cart
DestructiveIdempotent

Removes all units of a specified product from a signed-in Walmart.ca cart while leaving saved-for-later items unchanged.

Instructions

Remove a product (all units) from the signed-in Walmart.ca cart. Saved-for-later items are not touched.

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

Input Schema

NameRequiredDescriptionDefault
productYesProduct id (as in get_cart) or walmart.ca product URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/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 openWorldHint=true, so the safety profile is covered. The description usefully adds blast radius ('all units') and an explicit non-target (saved-for-later items), which is real value; however it does not say what happens when the product is absent, which matters for whether a repeat call errors or no-ops.

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?

Two short sentences with zero filler, and the core action plus the '(all units)' scope are front-loaded before the exclusion caveat. Nothing is buried or repeated.

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?

With rich annotations, one fully documented parameter and no output schema, the definition covers most of what an agent needs. It still leaves the failure/no-op behavior and the resulting cart state unspecified, which is a meaningful gap for a destructive mutation.

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% for the single parameter, and the schema itself explains that it accepts a product id as returned by get_cart or a walmart.ca URL. The description adds no further meaning about the parameter, so the baseline 3 applies with the schema carrying the weight.

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 and resource — removing a product from the signed-in Walmart.ca cart — and the parenthetical '(all units)' plus the saved-for-later exclusion pin down the exact scope. It implicitly separates itself from set_cart_quantity, though it never names a sibling tool outright.

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 signed-in cart context implies when the tool applies and the 'all units' wording quietly signals that partial reductions belong elsewhere, but there is no explicit when-to-use or when-not-to-use statement and no stated precondition (e.g. must be authenticated, product must exist in cart).

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