Skip to main content
Glama

Walmart Product Search API

walmart_product_search
Read-onlyIdempotent

Search Walmart products by keyword and compare listings by price and rating. Use it to find product options and pricing for a specific query.

Instructions

Search Walmart and compare products by price and rating. Costs 1 credit per successful call. One page of results per search. Prices and stock change often, and some listings show a price range or no price. Walmart sometimes blocks a lookup. If you see an error, try again.

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": {
      "query": "<query>"
    },
    "name": "walmart_product_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesProduct search. Type what you would search for on Walmart.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior5/5

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

Goes well past the readOnlyHint/openWorldHint/idempotentHint annotations by disclosing cost (1 credit per successful call), pagination limits (one page per search), data volatility, that some listings show a price range or no price, and that Walmart may block a lookup with retry advice. These are exactly the traits an agent needs to budget calls and interpret partial results.

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?

Front-loads the purpose, then layers caveats in short, individually useful sentences with no filler. The caveat list is slightly flat and unordered, which keeps it just short of ideal structure.

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

Completeness4/5

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

For a one-parameter search tool with no output schema, it covers the dimensions that matter: cost, result volume, data freshness, and failure handling. What results actually contain is only implied by "compare products by price and rating," and there is no note on sorting or relevance behavior.

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?

With a single parameter at 100% schema description coverage, the schema already explains that query is a free-text product search mirroring Walmart's own search box. The description adds no format, length, or query-construction guidance beyond that, so the baseline 3 applies.

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 ("Search Walmart and compare products by price and rating"), so an agent knows this returns shoppable Walmart listings with price/rating data. It does not name or differentiate itself from the obvious sibling amazon_product_search, so the reader must infer the retailer boundary from the name alone.

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 implied by the search framing and reinforced by the retry instruction for blocked lookups, which is actionable operational guidance. However, there is no statement of when to prefer this over amazon_product_search or walmart_keyword_tool, and no exclusions, so tool selection is left to inference.

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