convert_weight
Convert weight values between grams, kilograms, ounces, and pounds by providing the value, source unit, and target unit.
Instructions
Convert between weight units (g, kg, oz, lb)
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>"
},
"name": "convert_weight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Weight value to convert | |
| from_unit | Yes | Source weight unit (g, kg, oz, lb) | |
| to_unit | Yes | Target weight unit (g, kg, oz, lb) |