Convert Base Tool
convert-baseConvert a number from one base to another (2-64). Common shorthands: to=2 for binary, to=8 for octal, to=16 for hex. Requires a math.tools API token (numbers:* ability).
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": {
"number": "<number>",
"to": "<to>"
},
"name": "convert-base"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target base, 2-64. | |
| from | No | Source base, 2-64. Defaults to 10. | |
| number | Yes | The number to convert (read in the "from" base). |