unit_conversion
Convert values between units of length, weight, temperature, volume, and area. Specify the value, source unit, target unit, and category to get the converted result.
Instructions
Convert between different units of measurement.
Categories and units — length: mm, cm, m, km, in, ft, yd, mi, mil, μm, nm; weight: mg, g, kg, t, oz, lb, st, ton; temperature: C, F, K, R; volume: ml, cl, dl, l, kl, fl_oz, cup, pt, qt, gal, tsp, tbsp, bbl; area: mm2, cm2, m2, km2, in2, ft2, yd2, mi2, acre, ha.
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>",
"category": "<category>"
},
"name": "unit_conversion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| to_unit | Yes | Target unit symbol. | |
| category | Yes | ||
| from_unit | Yes | Source unit symbol. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||