unit_conversion
Convert any measurement between units, from inches to centimeters or Fahrenheit to Celsius, including compound units like km/h to mi/h for speed.
Instructions
Convert between units. Example: convert '5 inches to cm' or '100 fahrenheit to celsius'
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>",
"target_unit": "<target_unit>"
},
"name": "unit_conversion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Value with unit (e.g., '5 inches', '100 km/h') | |
| target_unit | Yes | Target unit to convert to (e.g., 'cm', 'mi/h'). Use compound forms like 'mi/h' / 'km/h' for speed; 'mph'/'kph'/'knot' are not recognized (same as mathjs). |