List units
list_unitsWithout quantity: list the quantities convert_units supports, with the number of units and the extra parameters of each. With quantity: list its units with the id, name and symbol to pass to convert_units, optionally filtered by search (for example "gallon" or "ell"). Call it when convert_units does not recognize a unit.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_units"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of units, 100 by default. | |
| locale | No | Language of the returned tool page link and of the text rules, one of: pl, en, de, es, fr, pt, it, cs, ar, id, tr, el, uk, ro, th, ja, vi, hi. Defaults to en. | |
| search | No | Part of a unit name, symbol or id, for example gallon. | |
| quantity | No | Quantity whose units to list. |