Bit Length
bit_lengthThe bit length of n: 0 for 0, and one more than the position of the highest 1 bit otherwise. 1 has length 1, 255 has length 8, and 256 has length 9. n runs from 0 to 999999999999999. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/bit-length
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": "bit_length"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |