评价产品
rate_product登录;产品1~5星/可选文字,一人一产品一条、重复编辑;禁评本人产品。get_product/search_products取id。
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": {
"productId": "<productId>",
"score": "<score>"
},
"name": "rate_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | 文字评价,可选 | |
| score | Yes | 星级 1–5 | |
| productId | Yes | 产品 id |