Unit Price Calculator
unit_priceCompare package prices per equal mass, volume or whole item count in one entered currency, with exact tie detection and compatible units only.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"currency": "USD",
"packages": [
{
"unit": "g",
"price": "3",
"quantity": "500"
},
{
"unit": "kg",
"price": "5",
"quantity": "1"
}
],
"targetUnit": "g"
},
"name": "unit_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | Yes | Entered three-letter currency label (letters only), shared by all prices; no exchange rates. | |
| packages | Yes | ||
| targetUnit | Yes | One common mass, volume or count unit for comparison. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||