nearest_power
Find the nearest power of a base to a number.
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>"
},
"name": "nearest_power"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Base | |
| number | Yes | Number to find nearest power for |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | ||
| error | No | ||
| number | No | ||
| exponent | No | ||
| lower_power | No | ||
| upper_power | No | ||
| nearest_power | No |