bitwise_calc
Performs bitwise AND, OR, XOR, NOT, NAND, NOR, and shift operations on integers, returning binary calculation results for programming and logic tasks.
Instructions
Perform bitwise operations (AND, OR, XOR, NOT, NAND, NOR, shifts) on integers.
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": {
"a": "<a>"
},
"name": "bitwise_calc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | First integer. | |
| b | No | Second integer (not needed for NOT). | |
| operation | No | Operation: and, or, xor, not, nand, nor, shift_left, shift_right (default and). |