divide
Divide a numerator by a denominator and return the result. Handles division by zero by returning an error message.
Instructions
Divide the first number by the second.
Args: a: The numerator. b: The denominator. Must not be zero.
Returns: A string with the result of a / b, or an error message if b is zero.
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": "divide"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |