bit_count
Count set bits and total bits, convert integers between decimal, binary, hex, and octal, and detect powers of two from a single value.
Instructions
Count set bits (popcount), total bits, and convert between decimal, binary, hex, and octal. Detects powers of two.
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": {
"value": "<value>"
},
"name": "bit_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Integer or binary/hex string (e.g. 42, 0xFF, 0b1010) |