ispower
Check if an integer is a perfect k-th power. Specify exponent k or omit to test for any power.
Instructions
Test if n is a perfect k-th power.
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": {
"n": "<n>"
},
"name": "ispower"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Exponent (0 or omitted means test any power). | |
| n | Yes | Integer. |