Convert gold weight units
convert_gold_unitsConverts gold weights between grams, kilograms, troy ounces, pennyweights, grains, tola, Thai baht, chi, luong, and taels using exact defined constants, returning each unit's definition and source.
Instructions
Convert a gold weight between gram, kilogram, troy ounce, pennyweight, grain, avoirdupois ounce, tola, Thai baht (bullion and jewellery), Vietnamese chi and luong, Hong Kong gold tael, Taiwan tael and China liang. Uses exact defined constants (1 troy ounce = 31.1034768 g, 1 grain = 64.79891 mg, NIST Handbook 44) and returns the definition and source of each unit. Omit "to" to get every unit.
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": {
"value": "<value>",
"from": "<from>"
},
"name": "convert_gold_units"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Weight unit: gram, kilogram, troy_ounce, pennyweight, grain, avoirdupois_ounce, tola, baht, baht_jewelry, chi, tael, luong, tael_taiwan, tael_china. Aliases such as g, kg, oz, ozt, dwt and kilo work. "oz" means troy ounce. | |
| from | Yes | Weight unit: gram, kilogram, troy_ounce, pennyweight, grain, avoirdupois_ounce, tola, baht, baht_jewelry, chi, tael, luong, tael_taiwan, tael_china. Aliases such as g, kg, oz, ozt, dwt and kilo work. "oz" means troy ounce. | |
| value | Yes | Amount to convert. |