Build routine with products
build_routineGenerates a complete skincare routine from a 4-letter skin type code, with per-step product recommendations and budget-aware cost summaries in per-product or total mode.
Instructions
Build a complete skincare routine for a 4-letter skin type code with product recommendations per step. Returns routine steps annotated with candidate products and a cost summary. Supports two budget modes: 'per-product' (each step is independently filtered to ≤ budget) and 'total' (greedy allocation across mandatory steps first, then optional, staying under the total budget). 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": {
"skinType": "<skinType>"
},
"name": "build_routine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many candidate products to return per step (1–5). Defaults to 3. | |
| budget | No | Budget cap in local currency. Interpretation depends on budgetMode. | |
| gender | No | Restrict the routine to gendered steps. Omit to include all. | |
| sortBy | No | Candidate sort order within each step. Omit for the fast default (lowest price first). 'rating' is slow (about 10s per step) and few products are rated. | |
| country | No | Country code for the product market. Defaults to 'US'. Aliases accepted: UAE → AE, USA → US. | |
| skinType | Yes | 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". | |
| timeOfDay | No | 'AM' for morning routine, 'PM' for evening. Omit for both. | |
| budgetMode | No | How 'budget' is applied. 'per-product' caps each step individually (default). 'total' caps the sum across the routine. |