Check colour stock
check_colour_stockVerify whether a specific colour is available before configure_product. Returns in_stock boolean, expected_restock_date if out of stock, and up to 5 alternative in-stock colours ordered by similarity. Call this when a customer requests a named colour or when you want to prevent a configure_product failure due to an out-of-stock selection. Duo Roller: colour is one blockout and one sheer written "Blockout + Sheer" (get_product returns duo_fabrics).
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": {
"product_id": "<product_id>",
"colour_name": "<colour_name>"
},
"name": "check_colour_stock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes | ||
| colour_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| found | No | ||
| colour | No | ||
| message | No | ||
| in_stock | Yes | ||
| product_id | No | ||
| expected_restock | No | ||
| matching_colours | No | ||
| available_colours | No | ||
| exact_colour_match | No | ||
| requires_exact_colour_selection | No |