calculate_margin_bulk
여러 품목의 매입·판매 행을 일괄로 계산해 행별·총계 결과를 반환합니다. HTML 원가율 계산기 탭의 calcRow + totals 와 동일 출력.
Body 스키마
{"rows": [{"item": "배추", "buyPrice": 1000, "sellPrice": 1500, "qty": 1}]}Returns per-row + aggregated totals for bulk margin calculation.
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": {
"rows": "<rows>"
},
"name": "calculate_margin_bulk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | 품목별 매입·판매 행 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||