subtract
Calculate the difference between two numbers by subtracting the second from the first, returning the result as a string.
Instructions
Subtract the second number from the first.
Args: a: The number to subtract from. b: The number to subtract.
Returns: A string with the result of a - b.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |