Skip to main content
Glama
shopcart-mcp
by Wals-pro

Search Store Products

search_products
Read-onlyIdempotent

Search a Shopify storefront's public catalog by keyword or browse top products, with optional availability and min/max price filters to narrow results.

Instructions

Search a Shopify storefront's public catalog by keyword (or browse top items when query is omitted) with optional availability and min/max price filters.

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": {
      "store_url": "<store_url>"
    },
    "name": "search_products"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax number of products to return (1-20, default 10).
queryNoSearch keyword(s). Recommended for all stores; required on WAF-restricted stores.
max_priceNoMaximum price filter in store major currency units.
min_priceNoMinimum price filter in store major currency units.
store_urlYesStore domain or HTTPS URL
available_onlyNoIf true, only return products currently marked available.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and open-world behavior, so the bar is lower. The description still adds real context: it discloses that only the *public* catalog is searched (not admin data) and that omitting the query degrades to a browse of top items, which is behavior an agent needs to anticipate.

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 that packs purpose, the query-omitted fallback, and the two filter families with no filler. Nothing is repeated from the schema.

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?

Covers purpose, scope, and the key conditional path, and annotations handle the safety profile. With no output schema, the description never indicates what a result entry contains or how results are ordered, which leaves a small gap for a search tool.

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 description coverage is 100%, so ranges, defaults, and the WAF note are already documented. The description adds only the omitted-query semantics, which is useful but thin; baseline 3 applies when the schema carries the parameter detail.

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 a Shopify storefront's public catalog by keyword') and adds scope details (filters, browse-when-omitted). It is distinguishable from get_product and inspect_store by the keyword-search framing, though no sibling is named explicitly.

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 description does give one conditional usage rule: browsing top items when query is omitted. However, it offers no guidance on when to prefer this over get_product or inspect_store, and prerequisites like the WAF-restricted-store requirement live only in the schema.

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