search_products
Find products by meaning, not just keywords. Get price, stock, and similarity score for strong matches.
Instructions
Semantic product search: finds products whose meaning matches the query, even without shared keywords. Returns price, stock and a cosine similarity score (1 = identical meaning; above ~0.8 is a strong match).
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": {
"query": "<query>"
},
"name": "search_products"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum rows to return (1-50). Default 5. | |
| query | Yes | What the customer is looking for, in natural language (e.g. 'gift for a runner'). | |
| category | No | Optional exact category name, case-insensitive: Electronics, Home & Kitchen, Sports & Outdoors, Books, Clothing, Beauty & Personal Care. An unknown category returns no products. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| category | Yes | ||
| products | Yes |