Match the customer's words to option ids
match_optionsTurns the customer's words ("velvet", "A5", "double sided", "500", "90 x 55mm", "round corners") into option ids for one product, given what is already chosen. Returns matches, the ambiguous phrases with every candidate (never a guess: ask the customer), options not available with what is chosen, the words it could not place, and the configuration so far for price_job.
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>",
"phrases": "<phrases>"
},
"name": "match_options"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chosen | No | What is already chosen, so options are filtered by it (finishes the chosen stock does not offer, combinations the supplier cannot make). | |
| phrases | Yes | The customer's words, one option each: ["velvet", "A5", "double sided", "500"]. | |
| product_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | Yes | ||
| values | Yes | ||
| matches | Yes | ||
| missing | Yes | ||
| product | Yes | ||
| problems | Yes | ||
| ambiguous | Yes | ||
| unmatched | Yes | ||
| product_id | Yes | ||
| configuration | Yes | ||
| not_available | Yes | ||
| ready_to_price | Yes |