Compare products
compare_productsReturns top products in a skincare category for side-by-side comparison, filtered by skin type, country, and budget.
Instructions
Return the top N products of a given category structured for side-by-side comparison. Filters by skin type, country, and budget. Default order is the catalog's (lowest price first); sortBy 'price' sorts cheapest first and 'rating' best-rated first (slow, about 10s, and few products are rated). Useful when the user asks to compare cleansers, moisturizers, sunscreens, etc. Each product includes a "link" to a retailer page (usually Amazon), which may be an affiliate link. If you share product links, state once: Product links go to retailers such as Amazon, and SkinGuide may earn a commission on purchases made through them.
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": {
"type": "<type>"
},
"name": "compare_products"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Product category to compare. | |
| limit | No | How many products to return (2–5). Defaults to 3. | |
| budget | No | Maximum price per product, in the country's local currency. | |
| sortBy | No | Sort order. Omit for the fast default (lowest price first). 'rating' is slow (about 10s) and few products are rated. | |
| country | No | Country code for the product market. Defaults to 'US'. Aliases accepted: UAE → AE, USA → US. | |
| skinType | No | 4-letter skin type code such as OSPT (Oily/Sensitive/Pigmented/Tight). Letters: O/D oily or dry, S/R sensitive or resistant, P/N pigmented or non-pigmented, W/T wrinkled or tight. One of: ORNT, ORNW, ORPT, ORPW, OSNT, OSNW, OSPT, OSPW, DRNT, DRNW, DRPT, DRPW, DSNT, DSNW, DSPT, DSPW. Do NOT use natural language like "sensitive" or "oily". |