Search products
search_productsSearch this store's products by keyword and/or filters. Returns matching titles, prices (with "was" price when on sale), availability, image, and URLs. Filters can be combined and used WITHOUT a keyword (e.g. on_sale=true alone lists everything on sale; price_max with in_stock_only=true lists affordable in-stock items).
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
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results (default 10, max 50) | |
| query | No | Search keywords (optional if a filter is given) | |
| offset | No | Skip this many to page through (use next_offset from a prior call) | |
| on_sale | No | Optional, only return products currently on sale (discounted) | |
| category | No | Optional category/collection to filter by (see list_categories) | |
| price_max | No | Optional maximum price | |
| price_min | No | Optional minimum price | |
| in_stock_only | No | Optional, only return products that are in stock |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | No | ||
| products | Yes | ||
| next_offset | No |