modulus
Compute the remainder when dividing a by b, and raise an error if b is zero.
Instructions
Compute the remainder when dividing a by b.
Args: a: The dividend. b: The divisor. Must not be zero.
Returns: The remainder of a divided by b.
Raises: DivisionByZeroError: 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": "modulus"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |