Unit Price
unit-priceUnit price: price divided by quantity (for comparing pack sizes). Null when quantity is zero.
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>",
"quantity": "<quantity>"
},
"name": "unit-price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | Price. | |
| quantity | Yes | Quantity / size. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unitPrice | No | Price per unit (null if quantity=0). |