Skip to main content
Glama

Search products

search_products
Read-onlyIdempotent

Finds the store's products (with variants and prices) or collections, to get the ids bundles, carts and sections need: products a bundle applies to, free gifts, upsells, mix and match items, the cart's reward gifts, upsell rules and order upsells, and products or collections for section settings and get_products. An empty query returns recently updated products.

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

Input Schema

NameRequiredDescriptionDefault
typeNoDefault products.
limitNoDefault 10.
queryNoWords from the title, or Shopify search syntax like vendor:Acme or tag:summer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so safety is covered. The description usefully discloses that results include variants and prices and that an empty query falls back to recently updated products, but says nothing about pagination, result ordering, or caps beyond limit.

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?

Purpose is front-loaded in the first clause, followed by a dense but relevant list of triggering scenarios and a short fallback note. The long enumeration of use cases costs some readability but every item corresponds to a real caller need.

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?

With only three optional parameters, full schema coverage, and annotations carrying the safety profile, the remaining burden is explaining what comes back and how to use it, and the description covers returned fields and the empty-query behavior. Pagination and ordering details are the only notable omissions 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 coverage is 100% and the schema already documents the type enum, limit default, and Shopify search syntax. The description adds one genuine semantic beyond the schema: an empty query returns recently updated products, which clarifies the query parameter's zero-value case.

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 gives a specific verb ('Finds') and resource ('the store's products ... or collections') and even states what the results carry (variants and prices). It references get_products and section settings only as downstream consumers of the returned ids, not as an explicit contrast, so sibling differentiation is implied rather than stated.

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 enumerates concrete use cases where this tool is the right entry point: bundle targeting, free gifts, upsells, mix-and-match items, cart reward gifts, upsell rules, and section settings. It also documents the empty-query path, but never states when not to use it or which sibling to pick when ids are already known.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources