unit_convert
Convert values between units in categories like length, weight, temperature, and data. Specify the value, source unit, and target unit to get the converted result.
Instructions
Convert between units of the same category. Categories: length (mm, cm, m, km, inch, in, ft, yard, yd, mile, mi), weight (mg, g, kg, ton, t, oz, lb, pound), temperature (C, F, K), data (bit, byte, KB, MB, GB, TB). Example: convert 100 from 'cm' to 'inch'.
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>",
"to": "<to>"
},
"name": "unit_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target unit, e.g. 'inch', 'lb', 'F', 'MB' | |
| from | Yes | Source unit, e.g. 'cm', 'kg', 'C', 'KB' | |
| value | Yes | The value to convert |