discover_products
Find fashion products using natural language and/or structured filters. Provide a query for semantic ranking via multimodal text+image embeddings ("oversized wool coat", "black leather jacket", "minimalist gold jewelry", "linen shirt for a beach wedding under $200") — best for open-ended discovery. Keep queries concrete: noun-led with up to one or two modifiers works best ("summer linen shirt" beats "breathable linen shirt perfect for summer"). Provide only structured filters (category, brand, colors, gender, price, etc.) for pure browse — results are recency-ranked and paginate cleanly. Combine both for filtered semantic search. At least one of query or a filter must be provided.
Example calls (notice the sparse filter population — descriptive attributes stay in query, not in structured fields):
"linen wedding guest dress under $200" → {query: "linen wedding guest dress", gender: "women", max_price: 200, materials: ["linen"]}
"wool coat under $300" → {query: "wool coat", gender: "women", max_price: 300, materials: ["wool"]}
"browse women's black dresses $100-$300" → {gender: "women", category: "clothing/dresses", colors: ["black"], min_price: 100, max_price: 300}
"Acne Studios outerwear" → {query: "outerwear", brand: "Acne Studios", gender: "women"}
Returns compact product cards: AI-generated summary, price, images, tags, and compact availability by color/size; variant price differences are nested under the availability dimension that determines price. For merchant description, store info, SKU-level variants, exact variant prices, and all product images, call get_product with a product ID from these results. Multi-currency prices supported (e.g. "under 200 zł" or min_price=200 + currency="PLN"); returned prices render in the requested currency when provided.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number. | |
| brand | No | Filter by brand name | |
| limit | No | Page size (1-20, default 12) | |
| query | No | Natural language search query — be descriptive for best results. Can include price with currency symbols (e.g. "white coat under 200 zł") which will be parsed automatically. Optional: when omitted, results are filtered by the structured fields below and ranked by recency. Provide either a query, structured filters, or both. | |
| colors | No | Filter by lowercase colors: e.g. ["black", "navy", "sage green"] | |
| gender | No | Gender filter. | |
| season | No | Season filter. Soft descriptor — set ONLY when the user explicitly named the season. The `query` field already captures season semantically; over-specifying is the most common cause of zero-result calls. | |
| styles | No | Style filter (OR semantics — a product matches if any of its `styles` values is in this list). Pass a single value to filter by one style ("styles": ["minimalist"]); pass several to span a related set ("styles": ["basics", "minimalist", "preppy", "sportswear"] for a "Casual" bucket). Soft descriptor — set ONLY when the user explicitly named one or more styles. The `query` field already captures style semantically; over-specifying is the most common cause of zero-result calls. | |
| country | No | Optional shopper location as an ISO-3166-1 alpha-2 country code (e.g. "US", "GB", "DE"). Recorded for analytics and used to improve future offer geo-matching. Omit if unknown — absence preserves current behavior. | |
| pattern | No | Pattern filter (e.g. solid, stripe, checked, floral). Soft descriptor — set ONLY when the user explicitly named the pattern. Default for unspecified ("solid") leaks into queries and zeros the candidate set; omit when unsure. | |
| sleeves | No | Sleeve style filter. Soft descriptor — set ONLY when the user explicitly named the sleeve style. Do not infer from category or query. | |
| category | No | Category slug, e.g. "clothing", "clothing/jackets", "clothing/jackets/bomber-jackets". Accepts last-segment shortcuts when unambiguous — e.g. "loafers-and-slip-ons" resolves the same as "shoes/loafers-and-slip-ons", and "bomber-jackets" resolves the same as "clothing/jackets/bomber-jackets". | |
| currency | No | ISO 4217 currency code for min_price/max_price (e.g. "PLN", "EUR", "GBP"). Prices are converted to USD for filtering. Omit for USD. | |
| neckline | No | Neckline filter. Soft descriptor — set ONLY when the user explicitly named the neckline. Do not infer from category or query. | |
| occasion | No | Occasion filter. Soft descriptor — set ONLY when the user explicitly named the occasion. The `query` field already captures occasion semantically; over-specifying is the most common cause of zero-result calls. | |
| materials | No | Filter by lowercase materials: e.g. ["cotton", "silk", "leather"] | |
| max_price | No | Maximum price (in the currency specified by "currency" param, or USD if omitted) | |
| min_price | No | Minimum price (in the currency specified by "currency" param, or USD if omitted) | |
| silhouette | No | Silhouette/fit filter (e.g. fitted, slim, regular, relaxed, oversized). Soft descriptor — set ONLY when the user explicitly named the fit. The `query` field already captures silhouette semantically; over-specifying is the most common cause of zero-result calls. | |
| color_match | No | Color matching mode. "any" (default): product has at least one of the queried colors. "exact": product has at least one image where the ONLY colors are the queried colors — use for mono-color searches like "all black". | any |
| store_domain | No | Filter by store domain (e.g. "thereformation.com"). Accepts forms with protocol, www, locale subdomain, or path — they are normalized to match the registered store. | |
| exclude_colors | No | Exclude products with these colors: e.g. ["white", "beige"] | |
| is_sustainable | No | True when the user explicitly wants products with sustainability claims. | |
| available_sizes | No | Filter by available size labels, e.g. ["s", "m", "38"]. | |
| exclude_materials | No | Exclude products with these materials: e.g. ["polyester", "nylon"] |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| products | Yes | ||
| marketUrl | Yes | ||
| hasNextPage | Yes |