calculate
Perform mathematical calculations including addition, subtraction, multiplication, division, power, square root, and modulo on two numbers.
Instructions
Perform a mathematical calculation.
Args: operation: The math operation (add, subtract, multiply, divide, power, sqrt, modulo) a: The first number b: The second number (not used for sqrt)
Returns: The calculation result as a string
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | No | ||
| operation | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |