Convert peptide amount units
convert_unitsConvert an amount between mg and mcg exactly. IU ↔ mass conversion only works with a peptide whose profile documents an IU-per-mg factor (pass peptide); otherwise the result is an iu_factor_missing issue, never an assumed factor. Pure arithmetic: not a dosing recommendation.
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": {
"amount": "<amount>",
"from": "<from>",
"to": "<to>"
},
"name": "convert_units"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Unit to convert to (mg, mcg or IU). | |
| from | Yes | Unit of the amount (mg, mcg or IU). | |
| amount | Yes | The amount to convert. A number; "2,5" and "2.5" both work. | |
| peptide | No | Peptide whose documented IU factor to use (only needed for IU). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| input | Yes | ||
| issues | Yes | ||
| result | Yes | ||
| source | Yes | ||
| status | Yes | ||
| iu_factor | Yes | ||
| disclaimer | Yes | ||
| retrieved_at | Yes |