Search products
search_productsSearch by keyword with optional category filter to find matching products. Returns product name, price, and stock.
Instructions
Search the merchant catalog by keyword, with an optional category filter. Returns matching products with id, name, price, and stock.
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 |
|---|---|---|---|
| query | Yes | Keyword to match against product name and description. | |
| category | No | Optional category to restrict results to. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Number of products matched. | |
| products | Yes | The matching products. |