Calculate cost per active gram
calculate_active_costCompare assay-based ingredient costs. Price is per kg; assay is percent (0 < assay <= 100); targetActiveMg is desired active mass per serving. This is formulation arithmetic, not dosage advice.
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": {
"pricePerKg": "<pricePerKg>",
"assayPercent": "<assayPercent>",
"targetActiveMg": "<targetActiveMg>"
},
"name": "calculate_active_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | No | USD | |
| pricePerKg | Yes | ||
| assayPercent | Yes | ||
| targetActiveMg | Yes |