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

Walmart.ca cart

get_cart
Read-only

Retrieve the contents of a signed-in Walmart.ca cart, including product details, quantities, prices, seller, item count, subtotal and fees, so you can review what is ready to buy.

Instructions

List the items in the signed-in Walmart.ca cart: product id, name, quantity, price, line total and seller, plus item count, subtotal and fees. Saved-for-later items are not included. Needs a signed-in profile.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_cart"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and "List" is consistent with that read-only profile. Beyond the annotations, the description discloses the returned field set and the auth requirement, but says nothing about pagination, empty-cart behavior, or rate limits.

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?

Three short sentences, front-loaded with the core action, then return contents, then scope caveat and prerequisite. Every clause carries usable information and none repeats the title or annotations.

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?

With no output schema, the description responsibly enumerates the return fields (ids, quantities, prices, seller, subtotal, fees). For a zero-parameter, read-only tool, the auth prerequisite and scope exclusion cover everything an agent needs to call it correctly.

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

Parameters4/5

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

The tool takes zero parameters, so there is nothing for the description to disambiguate. Baseline credit applies; no parameter-level detail is needed or missing.

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?

Uses a concrete verb ("List") plus the exact resource ("items in the signed-in Walmart.ca cart") and enumerates the returned fields, so the agent knows precisely what it gets. The explicit note that saved-for-later items are excluded separates it from the similar get_my_items sibling without needing another 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?

Supplies the key precondition ("Needs a signed-in profile") and one scope exclusion (saved-for-later), which is enough to know when the call will succeed. It stops short of naming an alternative tool for saved items or unauthenticated flows, so routing still requires a small inference.

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