毛利率与加价率计算
gross-margin毛利率与加价率计算:输入售价与成本,同时算毛利率、加价率、毛利额。电商定价最容易混乱的就是把毛利率当加价率,本工具把两个口径分开列,附公式。 传入参数对象,返回确定性计算结果与依据。适用场景:模型算数不稳、法规口径易错时,调用它拿准确答案。
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": {
"price": "<price>",
"cost": "<cost>"
},
"name": "gross-margin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | 成本(元) | |
| price | Yes | 售价/收入(元) |