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

Add to Walmart.ca cart

add_to_cart

Adds a product to a signed-in Walmart.ca cart, increasing any existing quantity and returning the updated cart line and subtotal without checking out.

Instructions

Add a product to the signed-in Walmart.ca cart (adds to any quantity already there). Does not check out or place an order. Returns the cart line and the new subtotal. Needs a signed-in profile.

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": "add_to_cart"
  }
}

Input Schema

NameRequiredDescriptionDefault
productYesProduct id from search_products or a walmart.ca/en/ip/... URL
quantityNoUnits to add (default 1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare the mutation/non-idempotent profile, but the description goes further by explaining *why* it is additive ("adds to any quantity already there"), disclosing the auth requirement, and stating the return payload (cart line plus new subtotal). That is genuinely useful context beyond the structured hints, and nothing conflicts with them.

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?

Four short sentences, zero filler, with the core action and its additive semantics front-loaded before the exclusions and the return value. Every sentence earns its place.

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

Completeness5/5

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

For a two-parameter mutation tool with no output schema, the description covers action semantics, additive behavior, the session prerequisite, what is not performed, and what comes back. Nothing an agent needs to invoke it correctly is missing.

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% and both parameters carry descriptions, including the product-id source and the quantity default, so the schema does the heavy lifting. The description adds only the indirect implication that quantity is additive rather than absolute; that is a fair baseline 3.

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?

"Add a product to the signed-in Walmart.ca cart" names a specific verb and resource, and the parenthetical "adds to any quantity already there" immediately separates it from a set-quantity operation. The reader knows exactly what the tool does and what it does not do without opening the schema.

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 states a clear negative boundary ("Does not check out or place an order") and a prerequisite ("Needs a signed-in profile"), which tells the agent when this tool is and isn't appropriate. It stops short of naming the sibling to use instead for replacing a quantity (set_cart_quantity) or for checking out, so it earns a 4 rather than a 5.

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