Cost per amount
cost_per_amountPrice arithmetic for a purchase: total cost (price plus optional shipping) and cost per mg, per mcg and (with a peptide's documented factor) per IU. Uses only the numbers given; it never estimates prices or shipping and converts no currencies.
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>",
"amount_per_package": "<amount_per_package>",
"amount_unit": "<amount_unit>"
},
"name": "cost_per_amount"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | Price paid for the product, in major units (e.g. 49.99). A number; "2,5" and "2.5" both work. | |
| peptide | No | Optional: peptide whose documented IU factor to use for cost per IU. | |
| currency | No | ISO currency code of the price (no conversion is done). | USD |
| shipping | No | Optional one-time shipping cost, same currency. A number; "2,5" and "2.5" both work. | |
| amount_unit | Yes | Unit of the amount per package (mg, mcg or IU). | |
| package_count | No | Number of vials or packages bought for that price. A number; "2,5" and "2.5" both work. | |
| amount_per_package | Yes | Amount in each vial or package. A number; "2,5" and "2.5" both work. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| issues | Yes | ||
| source | Yes | ||
| status | Yes | ||
| missing | Yes | ||
| currency | Yes | ||
| iu_factor | Yes | ||
| disclaimer | Yes | ||
| total_cost | Yes | ||
| retrieved_at | Yes | ||
| total_amount | Yes | ||
| cost_per_unit | Yes | ||
| cost_per_amount_unit | Yes |