is_power
Checks if a given number is an exact integer power of a specified base. Returns true if num = base^k for some non-negative integer k, false otherwise. (cost: 1 credit)
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": "is_power"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| num | No | number, required, the number to check | |
| base | No | number, required, the base to test against |