base_arith
Perform integer and bitwise arithmetic (add, subtract, multiply, divide, AND, OR, XOR, XNOR, NOT, negate) on 32-bit values in base 2, 8, 10, or 16.
Instructions
When: integer/bitwise arithmetic in a chosen base (32-bit), not floating evaluate. Params: op=add|sub|mul|div|and|or|xor|xnor|not|neg; a; b (except not/neg); base=2|8|10|16. Example: op="add", a="A", b="5", base=16.
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": {
"op": "<op>",
"a": "<a>"
},
"name": "base_arith"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | No | ||
| op | Yes | ||
| base | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |