Bitwise Calculator
calculator_bitwiseBitwise AND, OR, XOR, NOT on integers (Python signed integer semantics for NOT).
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": {
"operation": "<operation>",
"a": "<a>"
},
"name": "calculator_bitwise"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | First integer (or sole value for NOT). | |
| b | No | Second integer (required except for NOT). | |
| operation | Yes | and|or|xor|not (or &, |, ^, ~). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | ||
| operation | No | ||
| expression | Yes |