Skip to main content
Glama
Shopify MCP Server

Shopify MCP Server

by morsimohsen

search_products

Find Shopify products by keyword and return matching items, with an optional result limit for store management queries.

Instructions

Search for products by keyword

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

Input Schema

NameRequiredDescriptionDefault
firstNoNumber of results to return (default: 20)
queryYesSearch query

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description must carry the full behavioral burden, and it says nothing about result ordering (relevance vs. default sort), pagination beyond the schema's 'first' default, or what a match actually covers (title, tags, SKU, body). For a search tool whose result quality depends on ranking, that is a real gap.

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?

It is one short, front-loaded sentence with no filler or redundancy. Its brevity is efficient, though it sits close to the line where terseness becomes under-specification.

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?

For a two-parameter tool with full schema coverage and no output schema, the definition is minimally adequate: the agent can call it. It still leaves ranking, match scope, and the relationship to list_products unexplained, which matters for choosing it correctly.

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%: 'query' and 'first' are documented inline, including the default of 20, so the baseline of 3 applies. The description adds only the phrase 'by keyword', which hints that query is a free-text term but does not clarify matching rules or whether partial words work.

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?

The description states a specific verb and resource: 'Search for products by keyword.' It is clearly distinguishable from get_product or create_product, but it never contrasts itself with the close sibling list_products, so an agent must guess whether it filters or merely enumerates.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance at all: nothing says to prefer this over list_products, or when a keyword search is appropriate. The only implicit cue is the word 'keyword', and the agent must infer the rest from the sibling names.

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