Convert units
convert_unitsConvert a value between two units (length, mass, volume, temperature, speed, area, energy, cooking measures, fuel economy…). Units can be given as a symbol, name or plural in the chosen language ("kg", "pounds", "°C", "cups").
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": "convert_units"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target unit. | |
| from | Yes | Source unit. | |
| value | Yes | ||
| language | No | Language of the calculators and of the returned links (en, fr, es). Defaults to en. | en |
| quantity | No | Only to disambiguate a unit that exists in several quantities (e.g. "oz" for weight or volume). |