unit_converter
Convert any numerical value from one physical unit to another, supporting length, weight, temperature, area, volume, time, speed, and energy.
Instructions
Brief description: Physical unit conversion tool, supporting length, weight, temperature, etc., unit conversions.
Examples:
unit_converter(value=100, from_unit='cm', to_unit='m', unit_type='length')
unit_converter(value=32, from_unit='fahrenheit', to_unit='celsius', unit_type='temperature')
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_unit": "<from_unit>",
"to_unit": "<to_unit>",
"unit_type": "<unit_type>"
},
"name": "unit_converter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The numerical value to convert | |
| from_unit | Yes | Source unit | |
| to_unit | Yes | Target unit | |
| unit_type | Yes | Unit type. Supports: 'length', 'weight', 'temperature', 'area', 'volume', 'time', 'speed', 'energy' |