subtract_numbers
Calculates the arithmetic difference between two integers (a - b); use for subtraction only. Returns negative values when b is greater than a.
Instructions
Calculates the arithmetic difference between two integers (a - b). Use this tool when you need to subtract one value from another. Do not use for addition (use 'add_numbers' instead), multiplication (use 'multiply_numbers' instead), or division (use 'divide_numbers' instead). Deterministic pure calculation; returns negative values if the subtrahend 'b' is greater than minuend 'a'.
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>",
"b": "<b>"
},
"name": "subtract_numbers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | The minuend integer from which 'b' will be subtracted. | |
| b | Yes | The subtrahend integer to subtract from 'a'. |