Skip to main content
Glama

Search products

search_products
Read-only

List and search catalog products (active unless status says otherwise: draft, archived or any), filtered by text (name or SKU), barcode (barcode or EAN/GTIN) or having none (withoutBarcode), category/brand/collection/model (productGroupId — the other colours and sizes of one model)/size/color/stock/tag/type, by price in a given currency (priceCurrency with minPrice/maxPrice, read through the product's price list) or having no price in it (withoutPriceIn), by being on or off a marketplace channel (channel, onChannel), or by supplier and the supplier's last stock report (supplierId, supplierStock), sorted by name, price, newest or popularity (units sold in the last 90 days), and paginated. Returns each product's catalog fields — price and prices per currency, stock (null when the shop does not count it; see trackInventory), availability, variant fields (productGroupId, color, size, material and the rest), attributes (every characteristic), category, brand — plus its model, warehouse and supplier by name and supplierOffers (what the supplier last said: quantity, restock date, purchase price, state), and pagination { page, perPage, total }. A full row is heavy: pass fields to receive only the parts you read (id is always included). Use get_product to fetch one product's full detail by id or SKU.

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
qNoFree-text search over product name and SKU. Empty for no text filter.
tagNoFilter to products carrying this tag. Empty means any tag.
pageNo1-based page number of results to return. Default 1.
sizeNoFilter to products whose size equals this value, ignoring letter case (the product's own size field). Empty means any size.
sortNoSort order. Empty sorts by name. Allowed: name_asc, name_desc, price_asc, price_desc, newest, popular — popular ranks by units sold in confirmed, processing, ready-to-ship, shipped or delivered orders over the last 90 days. Ties break by name.
typeNoFilter by product type. Empty for any; "simple" or "bundle".
colorNoFilter to products whose color equals this value, ignoring letter case (the product's own color field, not a free-form attribute). Empty means any color.
fieldsNoWhich parts of each product to return; omit for the full row. `id` is always included. A hundred full rows weigh hundreds of kilobytes (description, translations, attributes, images, supplier offers), so when you only match or list products ask for what you read, for example ["name","sku","status","price","currency","stock","availability"]. `prices` is the price per currency, `stock` is null when the shop does not count it (see `trackInventory`), `supplierOffers` is what the supplier last said.
statusNoFilter by catalog status. Empty keeps the storefront default of active only. Use "draft" to find products waiting to be reviewed (marketplace imports and unknown SKUs from orders land there), or "any" for every status.
barcodeNoOnly products whose barcode or EAN/GTIN equals this value (exact; leading zeros are ignored, so a 12-digit UPC finds its 13-digit EAN form). Omit for any.
brandIdNoFilter to one brand by its id. Empty string means any brand.
channelNoA marketplace slug from list_marketplaces. Keeps the ACTIVE products that are on that channel (the same definition list_channel_products uses), or with onChannel=false those that are not. Omit for any.
inStockNoSet "true" to return only products with stock available. Empty means include out-of-stock.
perPageNoNumber of products per page (1-100). Default 20.
maxPriceNoOnly products priced at or below this amount — in the workspace currency, or in priceCurrency when you pass it.
minPriceNoOnly products priced at or above this amount — in the workspace currency, or in priceCurrency when you pass it.
onChannelNoUsed with channel: true (default) = only products on the channel, false = only products NOT on it. Ignored without channel.
categoryIdNoFilter to one category by its id. Empty string means any category.
collectionNoFilter to the products of one collection, by its slug from GET /collections. Only a collection that is visible and in season matches — an unknown, hidden or out-of-season slug is reported as not found, exactly like GET /collections/{slug}. Empty means no collection filter.
stockStateNoFilter by stock state, for products that track inventory. "low" returns products at or under their reorder threshold; "out" returns products with nothing left. Empty applies no stock-state filter.
supplierIdNoOnly products bought from this supplier — an id from list_suppliers — or "none" for products with no supplier. Omit for any supplier.
warehouseIdNoFilter to products in one warehouse by its id, from the warehouse list. Use "none" for products assigned to no warehouse — they match no id, so nothing else surfaces them. Empty means any warehouse. An id absent from this workspace is reported as an error, never as an empty result.
priceCurrencyNoISO 4217 code such as EUR. Makes minPrice/maxPrice compare the price the product has in THIS currency (its price list, else its own price when that is its currency) and keeps only products that are sold in it. Without minPrice/maxPrice it simply keeps the products sold in that currency. Omit to compare the workspace-currency price.
supplierStockNoOnly products whose supplier feed (e.g. Sipec) last reported this: in_stock (quantity above zero), arriving (none now, a restock date given), out_of_stock (none, no date), unknown (the supplier has not said). Omit for any.
productGroupIdNoFilter to the variants of one model: products whose productGroupId equals this value exactly. It is the merchant's (or supplier's) own model code, so letter case is part of it. Use it to render the other colours and sizes of the product a buyer is looking at. Empty means any model.
withoutBarcodeNotrue = only products with neither a barcode nor an EAN/GTIN — the ones a marketplace refuses without an exemption. Omit for any.
withoutPriceInNoISO 4217 code such as EUR. Only products with NO price in this currency (no price-list row and it is not their own currency) — the ones a store in that currency cannot sell. Omit for any.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / barcode
      Added value: +{
      +  "description": "Only products whose barcode or EAN/GTIN equals this value (exact; leading zeros are ignored, so a 12-digit UPC finds its 13-digit EAN form). Omit for any.",
      +  "maxLength": 64,
      +  "minLength": 6,
      +  "type": "string"
      +}
    • addedInput schema / properties / channel
      Added value: +{
      +  "description": "A marketplace slug from list_marketplaces. Keeps the ACTIVE products that are on that channel (the same definition list_channel_products uses), or with onChannel=false those that are not. Omit for any.",
      +  "enum": [
      +    "prom",
      +    "rozetka",
      +    "woocommerce",
      +    "shopify",
      +    "olx",
      +    "amazon",
      +    "ebay",
      +    "google_merchant",
      +    "vinted",
      +    "etsy"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / fields
      Added value: +{
      +  "description": "Which parts of each product to return; omit for the full row. `id` is always included. A hundred full rows weigh hundreds of kilobytes (description, translations, attributes, images, supplier offers), so when you only match or list products ask for what you read, for example [\"name\",\"sku\",\"status\",\"price\",\"currency\",\"stock\",\"availability\"]. `prices` is the price per currency, `stock` is null when the shop does not count it (see `trackInventory`), `supplierOffers` is what the supplier last said.",
      +  "items": {
      +    "enum": [
      +      "ageGroup",
      +      "attributes",
      +      "availability",
      +      "availableQuantity",
      +      "barcode",
      +      "brand",
      +      "bundleItems",
      +      "category",
      +      "color",
      +      "compareAtPrice",
      +      "condition",
      +      "countryOfOrigin",
      +      "currency",
      +      "customFields",
      +      "description",
      +      "descriptionHtml",
      +      "dimensions",
      +      "ean",
      +      "gender",
      +      "images",
      +      "keywords",
      +      "lowStockThreshold",
      +      "material",
      +      "minOrderQuantity",
      +      "model",
      +      "mpn",
      +      "name",
      +      "pattern",
      +      "price",
      +      "prices",
      +      "productGroupId",
      +      "reservedQuantity",
      +      "size",
      +      "sizeSystem",
      +      "sizeType",
      +      "sku",
      +      "status",
      +      "stock",
      +      "storefrontVisible",
      +      "supplier",
      +      "supplierOffers",
      +      "tags",
      +      "trackInventory",
      +      "translations",
      +      "type",
      +      "uktzed",
      +      "unit",
      +      "updatedAt",
      +      "videos",
      +      "warehouse",
      +      "warehouseId",
      +      "weight"
      +    ],
      +    "type": "string"
      +  },
      +  "maxItems": 52,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedInput schema / properties / maxPrice / description
      Previous value: -"Only products priced at or below this amount (workspace currency)."New value: +"Only products priced at or below this amount — in the workspace currency, or in priceCurrency when you pass it."
    • changedInput schema / properties / minPrice / description
      Previous value: -"Only products priced at or above this amount (workspace currency)."New value: +"Only products priced at or above this amount — in the workspace currency, or in priceCurrency when you pass it."
    • addedInput schema / properties / onChannel
      Added value: +{
      +  "description": "Used with channel: true (default) = only products on the channel, false = only products NOT on it. Ignored without channel.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / priceCurrency
      Added value: +{
      +  "description": "ISO 4217 code such as EUR. Makes minPrice/maxPrice compare the price the product has in THIS currency (its price list, else its own price when that is its currency) and keeps only products that are sold in it. Without minPrice/maxPrice it simply keeps the products sold in that currency. Omit to compare the workspace-currency price.",
      +  "pattern": "^[A-Za-z]{3}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / withoutBarcode
      Added value: +{
      +  "description": "true = only products with neither a barcode nor an EAN/GTIN — the ones a marketplace refuses without an exemption. Omit for any.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / withoutPriceIn
      Added value: +{
      +  "description": "ISO 4217 code such as EUR. Only products with NO price in this currency (no price-list row and it is not their own currency) — the ones a store in that currency cannot sell. Omit for any.",
      +  "pattern": "^[A-Za-z]{3}$",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / sort / description
      Previous value: -"Sort order. Empty sorts by name. Allowed: name_asc, name_desc, price_asc, price_desc, newest, popular — popular ranks by units sold in confirmed, processing, shipped or delivered orders over the last 90 days. Ties break by name."New value: +"Sort order. Empty sorts by name. Allowed: name_asc, name_desc, price_asc, price_desc, newest, popular — popular ranks by units sold in confirmed, processing, ready-to-ship, shipped or delivered orders over the last 90 days. Ties break by name."
  3. Changed2 schema fields changed
    • addedInput schema / properties / supplierId
      Added value: +{
      +  "description": "Only products bought from this supplier — an id from list_suppliers — or \"none\" for products with no supplier. Omit for any supplier.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / supplierStock
      Added value: +{
      +  "description": "Only products whose supplier feed (e.g. Sipec) last reported this: in_stock (quantity above zero), arriving (none now, a restock date given), out_of_stock (none, no date), unknown (the supplier has not said). Omit for any.",
      +  "enum": [
      +    "in_stock",
      +    "arriving",
      +    "out_of_stock",
      +    "unknown"
      +  ],
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / productGroupId
      Added value: +{
      +  "default": "",
      +  "description": "Filter to the variants of one model: products whose productGroupId equals this value exactly. It is the merchant's (or supplier's) own model code, so letter case is part of it. Use it to render the other colours and sizes of the product a buyer is looking at. Empty means any model.",
      +  "maxLength": 120,
      +  "type": "string"
      +}
  5. Changed5 schema fields changed
    • addedInput schema / properties / collection
      Added value: +{
      +  "default": "",
      +  "description": "Filter to the products of one collection, by its slug from GET /collections. Only a collection that is visible and in season matches — an unknown, hidden or out-of-season slug is reported as not found, exactly like GET /collections/{slug}. Empty means no collection filter.",
      +  "maxLength": 120,
      +  "type": "string"
      +}
    • addedInput schema / properties / color
      Added value: +{
      +  "default": "",
      +  "description": "Filter to products whose color equals this value, ignoring letter case (the product's own color field, not a free-form attribute). Empty means any color.",
      +  "maxLength": 80,
      +  "type": "string"
      +}
    • addedInput schema / properties / size
      Added value: +{
      +  "default": "",
      +  "description": "Filter to products whose size equals this value, ignoring letter case (the product's own size field). Empty means any size.",
      +  "maxLength": 60,
      +  "type": "string"
      +}
    • changedInput schema / properties / sort / description
      Previous value: -"Sort order. Empty uses the default order. Allowed: name_asc, name_desc, price_asc, price_desc, newest."New value: +"Sort order. Empty sorts by name. Allowed: name_asc, name_desc, price_asc, price_desc, newest, popular — popular ranks by units sold in confirmed, processing, shipped or delivered orders over the last 90 days. Ties break by name."
    • changedInput schema / properties / sort / enum
      Previous value: -[
      -  "",
      -  "name_asc",
      -  "name_desc",
      -  "price_asc",
      -  "price_desc",
      -  "newest"
      -]New value: +[
      +  "",
      +  "name_asc",
      +  "name_desc",
      +  "price_asc",
      +  "price_desc",
      +  "newest",
      +  "popular"
      +]
  6. Changed1 schema field changed
    • changedInput schema / properties / warehouseId / description
      Previous value: -"Filter to products in one warehouse by its id. Empty means any warehouse."New value: +"Filter to products in one warehouse by its id, from the warehouse list. Use \"none\" for products assigned to no warehouse — they match no id, so nothing else surfaces them. Empty means any warehouse. An id absent from this workspace is reported as an error, never as an empty result."
  7. Changed2 schema fields changed
    • addedInput schema / properties / status
      Added value: +{
      +  "default": "",
      +  "description": "Filter by catalog status. Empty keeps the storefront default of active only. Use \"draft\" to find products waiting to be reviewed (marketplace imports and unknown SKUs from orders land there), or \"any\" for every status.",
      +  "enum": [
      +    "",
      +    "draft",
      +    "active",
      +    "archived",
      +    "any"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / stockState
      Added value: +{
      +  "default": "",
      +  "description": "Filter by stock state, for products that track inventory. \"low\" returns products at or under their reorder threshold; \"out\" returns products with nothing left. Empty applies no stock-state filter.",
      +  "enum": [
      +    "",
      +    "low",
      +    "out"
      +  ],
      +  "type": "string"
      +}
  8. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  9. Changed12 schema fields changed
    • addedInput schema / properties / brandId / description
      Added value: +"Filter to one brand by its id. Empty string means any brand."
    • addedInput schema / properties / categoryId / description
      Added value: +"Filter to one category by its id. Empty string means any category."
    • addedInput schema / properties / inStock / description
      Added value: +"Set \"true\" to return only products with stock available. Empty means include out-of-stock."
    • addedInput schema / properties / maxPrice / description
      Added value: +"Only products priced at or below this amount (workspace currency)."
    • addedInput schema / properties / minPrice / description
      Added value: +"Only products priced at or above this amount (workspace currency)."
    • addedInput schema / properties / page / description
      Added value: +"1-based page number of results to return. Default 1."
    • addedInput schema / properties / perPage / description
      Added value: +"Number of products per page (1-100). Default 20."
    • addedInput schema / properties / q / description
      Added value: +"Free-text search over product name and SKU. Empty for no text filter."
    • addedInput schema / properties / sort / description
      Added value: +"Sort order. Empty uses the default order. Allowed: name_asc, name_desc, price_asc, price_desc, newest."
    • addedInput schema / properties / tag / description
      Added value: +"Filter to products carrying this tag. Empty means any tag."
    • addedInput schema / properties / type / description
      Added value: +"Filter by product type. Empty for any; \"simple\" or \"bundle\"."
    • addedInput schema / properties / warehouseId / description
      Added value: +"Filter to products in one warehouse by its id. Empty means any warehouse."
  10. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already establish read-only, non-destructive, closed-world behavior, and the description adds genuinely new traits: a full result row weighs hundreds of kilobytes, fields should be used to trim the payload, and an unknown warehouse id errors rather than returning empty. That payload-cost warning is the most operationally useful disclosure here.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The intent and scope are front-loaded, but the body is a single run-on sentence stringing together nearly every filter already documented in the schema. The payload-size warning and the get_product pointer earn their place; the full filter recital is largely redundant at 100% schema coverage.

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?

For a 27-parameter tool with no output schema, the description covers the return shape (catalog fields, variant fields, attributes, supplierOffers contents) and the pagination object, plus the fields trimming mechanism. An agent has enough to construct a correct call and anticipate the response without additional documentation.

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?

Schema coverage is 100%, so the baseline is 3; the description still earns above that by clarifying cross-parameter interactions the schema keeps local — productGroupId as the model grouping for other colours and sizes, priceCurrency being read through the price list, and min/maxPrice being interpreted in that currency. Some of the filter enumeration restates schema text verbatim, which caps it below 5.

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?

Opens with a specific verb+resource ("List and search catalog products") and immediately scopes it with the default status behavior. It also explicitly separates itself from get_product, which "fetch[es] one product's full detail by id or SKU", so an agent can pick the right tool without opening either 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?

Gives clear operating context: empty status means active-only, use draft to find imports awaiting review, use any for everything, and use get_product instead when fetching a single product. It stops short of naming when-not-to-use conditions beyond that one alternative, but the routing guidance is concrete.

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